Files
mb-grid-solutions.com/lib/services/cache/cache-service.ts
2026-02-07 01:11:28 +01:00

10 lines
250 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>;
}