mem-cluster-cache

1.1.1 • Public • Published

Overview

Library for read, write redis

Support

  • Save json object
  • Get json object
  • Remove
  • Remove by pattern

How to use

  • Install
    npm install mem-cluster-cache
  • Example
    cacheService=new redis.CacheService({
        port: 6379,          
        host: "localhost"
    })
    cacheService._db.on('connect',function () {
      ///
    });
    cacheService.saveObject("things","name",{name:"thing1", age:40}).then(function(){
        ///
    }).catch(function(err){
        ///
    })

Readme

Keywords

none

Package Sidebar

Install

npm i mem-cluster-cache

Weekly Downloads

9

Version

1.1.1

License

MIT

Unpacked Size

15.7 kB

Total Files

9

Last publish

Collaborators

  • eneoti