Interface ObjectCacheMethod
Callable
- ObjectCacheMethod(argument: { cacheDurationMs?: number; cacheKey: CacheKey; lock?: boolean; objectId: string; passthru?: boolean; read?: boolean; write?: boolean }, methodToGetValue: () => Promise<any>): Promise<any>
Parameters
argument: { cacheDurationMs?: number; cacheKey: CacheKey; lock?: boolean; objectId: string; passthru?: boolean; read?: boolean; write?: boolean }
Optional cacheDurationMs?: number
Optional lock?: boolean
objectId: string
Optional passthru?: boolean
Optional read?: boolean
Optional write?: boolean
methodToGetValue: () => Promise<any>
Returns Promise<any>