1.0.18 • Published 5 years ago

cache_star v1.0.18

Weekly downloads
12
License
ISC
Repository
-
Last release
5 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

5 years ago

1.0.17

7 years ago

1.0.16

7 years ago

1.0.15

7 years ago

1.0.14

8 years ago

1.0.13

8 years ago

1.0.12

8 years ago

1.0.11

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago