Is connect-redis compatible with ioredis 5.0.5 ?
kennethtxytqw opened this issue · comments
YesYouKen commented
When I did
const SessionStore: new (
opts: RedisStoreOptions
) => RedisStore = connectSessionRedis(session);
const sessionStore: RedisStore = new SessionStore({
client: IORedis.createClient(),
prefix: RedisSessionStoreFactory.#PREFIX,
});
I got this error
Type 'RedisClient' is not assignable to type 'Client | undefined'.
Type 'Cluster' is not assignable to type 'Client | undefined'.
Type 'Cluster' is missing the following properties from type 'Cluster': rpushBuffer, lpushBuffer, hsetBuffer, msetBuffer, and 3 more.
package.json
"connect-redis": "6.1.3",
"ioredis": "5.0.5",
```
Marc Harter commented
It should be compatible otherwise that is a bug. The typing is not maintained here though so that may be causing issues.
github-actions commented
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
github-actions commented
This issue was closed because it has been stalled for 5 days with no activity.