KeyValueCache.d.ts 338 B

123456789
  1. export interface KeyValueCache<V = string> {
  2. get(key: string): Promise<V | undefined>;
  3. set(key: string, value: V, options?: KeyValueCacheSetOptions): Promise<void>;
  4. delete(key: string): Promise<boolean | void>;
  5. }
  6. export interface KeyValueCacheSetOptions {
  7. ttl?: number | null;
  8. }
  9. //# sourceMappingURL=KeyValueCache.d.ts.map