Makes requests to a Redis instance
This module is itself a Redis client, with an added createClient method for
creating further Redis clients. The clients have been promisified, so to use
the promise version, append Async to method names.
Redis.getAsync('myKey').then(value => console.log(value));- Source:
Methods
(static) createClient() → {RedisLib.Client}
Create a Redis client.
- Source:
Returns:
- Type
- RedisLib.Client
Example
Creating another Redis client
Redis.createClient().then(subscriber => subscriber.subscribeAsync('channel'));