Redis Client Class

The RedisClient class provide support for Redis usage into the application.

Applications created using this framework must inherits this class.

Type: mixin class without constructor

Example:

class MyNewApplication extends RedisClient( Application )
{

}

Back to Documentation main page

Dependency

NPM Redis Library


Implemented Methods

async application.startRedis()

Starts Redis client layer

Setup Redis related application properties.


async application.connectRedis()

Set application.redis.store and associate a Redis (redis module) connection

Call application.setStoreEvents()


async application.setStoreEvents()

Setup Redis Store events.

Resolves when application.redis.store.onReady event is triggered

async application.stopRedis()

Calls application.redis.store.quit()