cachified-redis-adapter
Version:
A redis adapter for usage with @epic-web/cachified
11 lines (10 loc) • 371 B
TypeScript
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;