@sociably/redis-state
TypeScript icon, indicating that this package has built-in type declarations

0.8.0 • Public • Published

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,
      },
    }),
  ],
});

Readme

Keywords

none

Package Sidebar

Install

npm i @sociably/redis-state

Weekly Downloads

12

Version

0.8.0

License

MIT

Unpacked Size

17.6 kB

Total Files

18

Last publish

Collaborators

  • lrills