Options
All
  • Public
  • Public/Protected
  • All
Menu

Module redis-state

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({
clientOptions: {
host: 'localhost',
port: 6379,
},
}),
],
});

Index

Other

RedisStateConfigs: { clientOptions: ClientOpts }

Type declaration

  • clientOptions: ClientOpts

Generated using TypeDoc