jsr-store

0.1.61 • Public • Published

Table of Contents

Store Module

Javascript redis key value store.

Implements an in-memory key value store and mimics a subset of the redis commands.

The typical use case is a server application that runs as a single process, distributed and clustered.

When running as a single process it does not make sense to store information externally, this library allows seamlessly switching between internal process memory and external redis memory storage.

Component of the jsr library.

Requires node and npm.

Install

npm i jsr-store

API

var Store = require('jsr-store')
  , store = new Store()
  , db = store.databases[0];
 
try {
  db.set('key', 'value')
  db.get('key')
  db.del('key');
}catch(e) {
  // handle error
}

See the tests for more examples.

Developer

Test

Tests are not included in the package, clone the repository:

npm test

Documentation

To generate all documentation:

npm run docs

Readme

To build the readme file from the partial definitions (requires mdp):

npm run readme

License

Everything is MIT. Read the license if you feel inclined.

Generated by mdp(1).

Readme

Keywords

none

Package Sidebar

Install

npm i jsr-store

Weekly Downloads

0

Version

0.1.61

License

none

Last publish

Collaborators

  • muji
  • tmpfs