0.0.1-rc.19 • Published 3 years ago
@v3xlabs/redeez v0.0.1-rc.19
A simplified general-purpose queueing system for node apps.
Table of Contents
Installation
Using npm:
npm install redeez redisor if you prefer to use the yarn package manager:
yarn add redeez redisor if you prefer to use the pnpm package manager:
pnpm add redeez redisDocumentation
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.
0.0.1-rc.19
3 years ago
0.0.1-rc.17
3 years ago
0.0.1-rc.16
3 years ago
0.0.1-rc.15
3 years ago
0.0.1-rc.14
3 years ago
0.0.1-rc.13
3 years ago
0.0.1-rc.12
3 years ago
0.0.1-rc.10
3 years ago
0.0.1-rc.11
3 years ago