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

0.6.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @machinat/redis-state

Weekly Downloads

1

Version

0.6.0

License

MIT

Unpacked Size

19 kB

Total Files

18

Last publish

Collaborators

  • lrills0515
  • lrills