random-access-memory-store

1.0.0 • Public • Published

Random Access Memory Store

Ephemeral store with random access for better-queue.

The implementation is based on Memory Store which is the default store used in the better-queue package. The difference is that the queued items will be processed in random order.

First in, last out...

Note that setting the filo flag on the queue has no effect when using this store.

Getting started

var Queue = require('better-queue');
var RandomAccessMemoryStore = require('random-access-memory-store');
 
var q = new Queue(function (input, cb) {
  
  // Some processing here ...
 
  cb(null, result);
}, {
  store: new RandomAccessMemoryStore()
});

Package Sidebar

Install

npm i random-access-memory-store

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

58.8 kB

Total Files

13

Last publish

Collaborators

  • stefda