UNPKG

cachified-redis-adapter

Version:
11 lines (10 loc) 371 B
import type { Cache } from '@epic-web/cachified'; export interface RedisLikeCache { name?: string; set(key: string, value: string, options?: { EXAT: number; }): Promise<string | null>; get(key: string): Promise<string | null>; del(key: string): Promise<unknown>; } export declare function redisCacheAdapter(redisCache: RedisLikeCache): Cache;