RecipleRegistryCache
class
RecipleRegistryCache
sourceexport class RecipleRegistryCache extends BaseModule implements RecipleRegistryCache.Options export class RecipleRegistryCache extends BaseModule implements RecipleRegistryCache.Optionsconstructor(options?: RecipleRegistryCache.Options) constructor(options?: RecipleRegistryCache.Options)| Param | Type | Required |
|---|---|---|
| | No |
onReady(): Promise<void> onReady(): Promise<void>Returns:
Promise<void> Promise<void>readCacheEntry(): Promise<RecipleRegistryCache.CacheEntry|null> readCacheEntry(): Promise<RecipleRegistryCache.CacheEntry|null>Returns:
Promise<RecipleRegistryCache.CacheEntry|null> Promise<RecipleRegistryCache.CacheEntry|null>.writeCacheEntry(...)
writeCacheEntry(entry?: RecipleRegistryCache.CacheEntry): Promise<void> writeCacheEntry(entry?: RecipleRegistryCache.CacheEntry): Promise<void>| Param | Type | Required |
|---|---|---|
| | No |
Returns:
Promise<void> Promise<void>clearCacheEntry(): Promise<void> clearCacheEntry(): Promise<void>Returns:
Promise<void> Promise<void>createCacheEntry(): Promise<RecipleRegistryCache.CacheEntry> createCacheEntry(): Promise<RecipleRegistryCache.CacheEntry>Returns:
Promise<RecipleRegistryCache.CacheEntry> Promise<RecipleRegistryCache.CacheEntry>public source
.isCacheHit(...)
isCacheHit(cached: RecipleRegistryCache.CacheEntry, current: RecipleRegistryCache.CacheEntry): boolean isCacheHit(cached: RecipleRegistryCache.CacheEntry, current: RecipleRegistryCache.CacheEntry): boolean| Param | Type | Required |
|---|---|---|
| | Yes |
| | Yes |
Returns:
boolean booleanpublic source
.createCacheEntryEvenIfDisabled
boolean booleanpublic source
.maxCacheAgeMs?
number numberpublic source
.cacheEnabledEnv
string string