Package app.ductape.sdk.cache
Class CacheManager
java.lang.Object
app.ductape.sdk.cache.CacheManager
TS parity:
sdk/ts/src/cache/cache.manager.ts.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic enumstatic final recordstatic final recordstatic enumstatic final recordstatic final recordstatic final recordstatic interfacestatic final record -
Constructor Summary
ConstructorsConstructorDescriptionCacheManager(CacheManager.CacheManagerConfig config, ProcessorApiService processorApiService) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidfetch(CacheManager.CacheOperationOptions options, Class<T> type) generateKey(String cacheTag, Object input) generateKeyV2(String cacheTag, String componentType, String operation, Object input) voidinvalidate(String cacheTag, Object input) voidbooleanvoidsetMaxInternalCacheSize(int size) <T> voidstore(CacheManager.CacheOperationOptions options, T data) <T> CacheManager.WithCacheResult<T>withCache(CacheManager.CacheOperationOptions options, Class<T> type, Supplier<T> operation)
-
Constructor Details
-
CacheManager
-
CacheManager
public CacheManager(CacheManager.CacheManagerConfig config, ProcessorApiService processorApiService)
-
-
Method Details
-
enableLogging
-
disableLogging
public void disableLogging() -
setMaxInternalCacheSize
public void setMaxInternalCacheSize(int size) -
clearInternalCache
public void clearInternalCache() -
isAvailable
public boolean isAvailable() -
generateKey
-
generateKeyV2
-
fetch
public <T> CacheManager.CacheFetchResult<T> fetch(CacheManager.CacheOperationOptions options, Class<T> type) -
store
-
invalidate
-
invalidateV2
-
withCache
public <T> CacheManager.WithCacheResult<T> withCache(CacheManager.CacheOperationOptions options, Class<T> type, Supplier<T> operation) -
getInternalCacheStats
-
getDetailedStats
-