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