redis-handler-nt
v1.0.4
Published
Simple handler for Redis connection
Downloads
6
Readme
RedisHandler
This module handles a simple connection to Redis DB server.
Installation
$ npm install redis-handler-nt --save
Usage
- connect(config)
Example of config
{
"host": "127.0.0.1",
"port": "6379"
}
See the allowed properties on the official documentation [https://www.npmjs.com/package/redis#rediscreateclient].
- getClient()
Get the client redis object.
Then, you just need to call this function in the files that will use it.