1.0.2 • Published 4 years ago
cs-nest-redis v1.0.2
README
This project is wrapper over the NestJS Redis module. It provides various readymade tailored method to do some few extra redis operations.
For example,
- Set expiry to midnight
- Most of the method with Promises with simple resposnse structure
- Success
- Failed
How to use
- Simply add the RedisModule from 'cs-nest-redis'
- Inject the RedisRepository class in the desired class to use the module
Variations
Coming soon
Note
By default it connect to DB number of redis. On command line, we can check data using the following commands
// Go to redis command line
redis-cli
// Switch the DB
select 1
// Now you can verify the records
get('your key name')