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 @machinat/core @machinat/redis-state
# or with yarn
yarn add @machinat/core @machinat/redis-state

Docs

Check the Using State document and the package reference.

Setup

import Machinat from '@machinat/core';
import RedisState from '@machinat/redis-state';

const app = Machinat.createApp({
modules: [
RedisState.initModule({
clientOptions: {
host: 'localhost',
port: 6379,
},
}),
],
});

Index

Other

RedisStateConfigs: { clientOptions: ClientOpts }

Type declaration

  • clientOptions: ClientOpts

Generated using TypeDoc