redeez
TypeScript icon, indicating that this package has built-in type declarations

0.0.1-rc.20 • Public • Published

redeez


A simplified general-purpose queueing system for node apps.

Table of Contents

Installation

Using npm:

npm install redeez redis

or if you prefer to use the yarn package manager:

yarn add redeez redis

or if you prefer to use the pnpm package manager:

pnpm add redeez redis

Documentation

Handling Tasks

import { handleTasks } from 'redeez';

// Do your pre-configuration here, connect to your favourite database etc.
const redis = new RedisClient();

// And handle tasks
handleTasks(redis, {
    resizeAvatar: {
        queue: 'avatars:resize',
        handler: async ({ avatar }) => {
            // Your code here
        },
    },
    resizeImage: {
        queue: 'images:resize',
        handler: async ({ image }) => {
            // Your code here
        },
    },
});

Contributors

LICENSE

This package is licensed under the GNU Lesser General Public License.

Readme

Keywords

Package Sidebar

Install

npm i redeez

Weekly Downloads

1

Version

0.0.1-rc.20

License

LGPL-3.0-or-later

Unpacked Size

6.48 kB

Total Files

5

Last publish

Collaborators

  • lucemans