mirror of
https://github.com/vercel/chat.git
synced 2026-09-14 18:32:29 +08:00
28cbcb2994
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@chat-adapter/state-redis
Redis state adapter for Chat SDK using the official redis package. Recommended for production.
Installation
npm install chat @chat-adapter/state-redis
Usage
import { Chat } from "chat";
import { createRedisState } from "@chat-adapter/state-redis";
const bot = new Chat({
userName: "mybot",
adapters: { /* ... */ },
state: createRedisState({
url: process.env.REDIS_URL!,
}),
});
Documentation
Full documentation at chat-sdk.dev/docs/state/redis.
License
MIT