0.0.15 • Published 8 years ago

data-storage v0.0.15

Weekly downloads
13
License
Apache-2.0
Repository
github
Last release
8 years ago

datastorage

Build Status Coverage Status npm version

js-standard-style

Installation

$ npm i data-storage

Usage

var DataStorage = require('data-storage')
var ds = new DataStorage()
ds.once('connect', function () {
  console.log('data-storage is now initialized')
})
ds.init()

API

Constructor:

DataStorage(settings)

where settings is an object of these properties:

{
  redisPort: 6379,
  redisHost: '127.0.0.1',
  redisUrl: '127.0.0.1:6379'  // if specified, redisPort and redisHost are ignored
}

Member methods:

DataStorage.prototype.set(key, value)
DataStorage.prototype.get(key, callback)
DataStorage.prototype.hset(hash, key, callback)
DataStorage.prototype.hget(hash, key, callback)
DataStorage.prototype.hkeys(hash, callback)

Testing

$ mocha

License

Apache-2.0

0.0.15

8 years ago

0.0.14

8 years ago

0.0.13

8 years ago

0.0.12

8 years ago

0.0.11

9 years ago

0.0.10

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago