1.0.18 • Published 4 years ago

cache_star v1.0.18

Weekly downloads
12
License
ISC
Repository
-
Last release
4 years ago

Cache Star

Cache Star is a Redis - In memory simple binder, using under the hood Redis pub-sub methods and lazy loads to in memory object, return promises.

Installation

Cache Star requires Node.js v6+ to run. Install the dependencies and devDependencies and start the server.

$ npm install cache_star --save

Usage Examples

In your node app

 let cacheStar = require(‘cache_star’);
 let redisConObj = { port: 'myRedisPort', host: 'myRedisHost', password: 'myRedisPass' };
 let cachStarManger = new cacheStar(redisConObj);

cachStarManger.get(‘myRedisHash’, ‘myRedisHashKey’).then((hashVal) => {
    // do something	
});

cachStarManger.set(‘myRedisHash’, ‘myRedisHashKey’, objToSave).then((ans) => {
	// do something
});

cachStarManger.del(‘myRedisHash’, ‘myRedisHashKey’).then((hashVal) => {
	// do something
});

Supports:

currently support 4 redis methods

  • get
  • getAll
  • set
  • del

Tech

Cache Star uses a number of open source projects to work properly:

  • Node_Redis - redis client for node.
  • Bluebird - Bluebird is a full featured promise library with unmatched performance.
1.0.18

4 years ago

1.0.17

6 years ago

1.0.16

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago