UNPKG

@fortedigital/nextjs-cache-handler

Version:
13 lines (10 loc) 422 B
import { RedisClientType } from '@redis/client'; import { Redis } from 'ioredis'; /** * Adapter to make an ioredis client compatible with the interface expected by createRedisHandler. * * @param client - The ioredis client instance. * @returns A proxy that implements the subset of RedisClientType used by this library. */ declare function ioredisAdapter(client: Redis): RedisClientType; export { ioredisAdapter };