11 lines
251 B
TypeScript
11 lines
251 B
TypeScript
export type CacheSetOptions = {
|
|
ttlSeconds?: number;
|
|
};
|
|
|
|
export interface CacheService {
|
|
get<T>(key: string): Promise<T | undefined>;
|
|
set<T>(key: string, value: T, options?: CacheSetOptions): Promise<void>;
|
|
del(key: string): Promise<void>;
|
|
}
|
|
|