Skip to content

Commit

Permalink
fix(Typings): useAdapter can use a Redis or Cluster (#1192)
Browse files Browse the repository at this point in the history
  • Loading branch information
digiz3d authored Dec 19, 2024
1 parent 14d8d70 commit 615a1d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ioredis-adapter/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export class IoRedisAdapter implements CacheClient {
}
}

export const useAdapter = (client: Redis, asFallback?: boolean, options?: CacheManagerOptions): IoRedisAdapter => {
export const useAdapter = (client: Redis | Cluster, asFallback?: boolean, options?: CacheManagerOptions): IoRedisAdapter => {
const ioRedisAdapter = new IoRedisAdapter(client);

if (asFallback) {
Expand Down

0 comments on commit 615a1d8

Please sign in to comment.