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

0.1.22 • Public • Published

xqueue

Emitter at Redis queue

NPM version Build Status Coverage Status

xqueue:emitter:listener:${type}

  • emit(type, data)
SMEMBERS xqueue:emitter:listener:${type}
RPUSHX xqueue:emitter:encoding:${type}:${encoding}
SREM xqueue:emitter:encoding:${type}:${encoding}
  • on(type, encoding, fn)
RPUSH xqueue:emitter:encoding:${type}:${encoding} :nil
EXPIRE xqueue:emitter:encoding:${type}:${encoding} ${expire}
SADD xqueue:emitter:listener:${type} ${encoding}
 
while (true) {
  LPOP xqueue:emitter:encoding:${type}:${encoding}
  sleep()
}

License

MIT © zswang

Readme

Keywords

none

Package Sidebar

Install

npm i xqueue

Weekly Downloads

0

Version

0.1.22

License

MIT

Unpacked Size

27.5 kB

Total Files

6

Last publish

Collaborators

  • zswang