@prezly/theme-kit-nextjs
Version:
Data layer and utility library for developing Prezly themes with NextJS
10 lines (9 loc) • 330 B
TypeScript
import type { ContentDelivery } from '@prezly/theme-kit-core';
import { type RedisClientOptions } from 'redis';
type Seconds = number;
type Options = RedisClientOptions & {
ttl?: Seconds;
prefix?: string;
};
export declare function createRedisCache({ ttl, prefix, ...options }: Options): ContentDelivery.Cache;
export {};