export interface CacheAdapter { /** * Gets the items under `name` key from the cache. */ get(name: string): Promise; /** * Sets the item to the cache. `origin` is used for cache invalidation and should reflect the change in data. */ set(name: string, data: any, origin: string): Promise; /** * Clears all items stored in the cache. */ clear(): Promise; }