cacheman-redis-promised

1.0.3 • Public • Published

cacheman-redis-promised

Basically an extension of cacheman-redis module that uses promises.

Instalation

$ npm install cacheman-redis-promised

Usage

const cache = require('cacheman-redis-promised')({host: '127.0.0.1', port: 6379})

or

const cache = require('cacheman-redis-promised')('redis://.....')
cache.set('some key', 'hello there').then(function(data) {
	console.log(data); // -> 'hello there'
	return cache.get('some key');
}).then(function(data) {
	console.log(data); // -> 'hello there' from cache.get
	return cache.del('some key');
}).then(function() {
	console.log('value deleted');
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    0
  • 1.0.2
    1

Package Sidebar

Install

npm i cacheman-redis-promised

Weekly Downloads

1

Version

1.0.3

License

ISC

Unpacked Size

2.42 kB

Total Files

3

Last publish

Collaborators

  • harimambura