tj / connect-redis

Redis session store for Connect

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is connect-redis compatible with ioredis 5.0.5 ?

kennethtxytqw opened this issue · comments

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",
   ```

It should be compatible otherwise that is a bug. The typing is not maintained here though so that may be causing issues.

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.

This issue was closed because it has been stalled for 5 days with no activity.