📜  连接 redis typescript 使用 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:20.386000             🧑  作者: Mango

代码示例3
import * as session from 'express-session';
import * as connectRedis from 'connect-redis';
let RedisStore = connectRedis(session);

app.use(session({
    store: new RedisStore({client: redis.createClient(6379, "localhost")}),...
}));