1.0.7 • Published 7 years ago

redis-clear-lib v1.0.7

Weekly downloads
15
License
ISC
Repository
-
Last release
7 years ago

This library will help you in setting up redeis server and help you in:

  • Retrieving all keys based on input key
  • Deleting all matching patterns/keys based on provided input

Install with:

npm install redis-clear-lib
let redisCache =require('redis-clear-lib')
  • 1 Retrieving all keys based on input key
//
redisCache.getAllMatchingKeys('key').then(res=>{

// Arry containing list of keys

})
.catch(err=>{
//handling errors

})
  • 2 Deleting all matching patterns/keys based on provided input
//
redisCache.deleteMatchingkeys('key').then(res=>{
//When the matching pattern is found
// {'success':true,'message':'Matching keys removed successfully','count':res};

//here count is number of matching keys
})
//handling errors
.catch(err=>{
//When no matching pattern is found
// {'success':false,'message':'No Matching pattern found'});

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