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');
});

Readme

Keywords

Package Sidebar

Install

npm i cacheman-redis-promised

Weekly Downloads

0

Version

1.0.3

License

ISC

Unpacked Size

2.42 kB

Total Files

3

Last publish

Collaborators

  • harimambura