@machinat/redis-state
v0.6.0
Published
This module implement the [`BaseStateController`](https://machinat.com/api/modules/core_base_statecontroller.html) interface with redis in-memory database.
Downloads
5
Readme
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,
},
}),
],
});