@unito/integration-sdk
Version:
Integration SDK
13 lines (12 loc) • 405 B
TypeScript
import { CacheInstance } from 'cachette';
/**
* Initializes a Cache backed by the Redis instance at the provided url if present, or a LocalCache otherwise.
*
* @param redisUrl - The redis url to connect to (optional).
* @returns A cache instance.
*/
declare function create(redisUrl?: string): CacheInstance;
export declare const Cache: {
create: typeof create;
};
export type { CacheInstance };