@microfleet/plugin-dlock
TypeScript icon, indicating that this package has built-in type declarations

3.1.3 • Public • Published

Microfleet DLock Plugin

Wrapper for Distributed callback queue.

Install

yarn add @microfleet/plugin-dlock

Configuration

To make use of the plugin adjust microfleet configuration in the following way:

exports.plugins = [
  ...,
  'redisCluster', // or 'redisSentinel'
  'dlock',
  ...
]

exports.dlock = {
  // pubsubChannel: string;
  // lock?: {
  //   timeout?: number;
  //   retries?: number;
  //   delay?: number;
  // };
  // lockPrefix: string;
}

Interface

Microfleet DLock Plugin extends service interface with the following methods:

service.dlock: type of 'dlock'

Initialized instance. Look at the docs here - https://github.com/AVVS/distributed-callback-queue

Readme

Keywords

none

Package Sidebar

Install

npm i @microfleet/plugin-dlock

Weekly Downloads

39

Version

3.1.3

License

MIT

Unpacked Size

24.3 kB

Total Files

20

Last publish

Collaborators

  • avvs
  • torinasakura