This commit is contained in:
10
lib/services/cache/cache-service.ts
vendored
Normal file
10
lib/services/cache/cache-service.ts
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
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>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user