/** * Contract interface for key-value cache stores. * * No default first-party implementation is currently shipped. * * @module extensions/cache/cache-store */ /** * CacheStore contract interface. * * Implementations provide key-value caching with optional TTL support. */ export interface CacheStore { /** Retrieve a cached value by key. Returns `undefined` on miss. */ get(key: string): Promise; /** Store a value under the given key with an optional TTL in seconds. */ set(key: string, value: T, ttl?: number): Promise; /** Delete a cached entry. */ delete(key: string): Promise; /** Check whether a key exists in the cache. */ has(key: string): Promise; /** Remove all entries from the cache. */ clear(): Promise; /** Close connections and release resources. */ disconnect?(): Promise; } //# sourceMappingURL=cache-store.d.ts.map