Redis State Module
This module implement the BaseStateController
interface with redis in-memory database.
Install
npm install @sociably/core @sociably/redis-state
# or with yarn
yarn add @sociably/core @sociably/redis-state
Docs
Check the Using State document and the package reference.
Setup
import Sociably from '@sociably/core';
import RedisState from '@sociably/redis-state';
const app = Sociably.createApp({
modules: [
RedisState.initModule({
connectOptions: {
host: 'localhost',
port: 6379,
},
}),
],
});