Class CacheDecorators
java.lang.Object
org.keycloak.models.sessions.infinispan.CacheDecorators
- Author:
- Marek Posolda
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <K,
V> org.infinispan.AdvancedCache<K, V> localCache
(org.infinispan.Cache<K, V> cache) AddsFlag.CACHE_MODE_LOCAL
flag to the cache.static <K,
V> org.infinispan.AdvancedCache<K, V> skipCacheLoadersIfRemoteStoreIsEnabled
(org.infinispan.Cache<K, V> cache) AddsFlag.SKIP_CACHE_LOAD
andFlag.SKIP_CACHE_STORE
flags to the cache.static <K,
V> org.infinispan.AdvancedCache<K, V> skipCacheStoreIfRemoteCacheIsEnabled
(org.infinispan.Cache<K, V> cache) AddsFlag.SKIP_CACHE_STORE
flag to the cache.
-
Constructor Details
-
CacheDecorators
public CacheDecorators()
-
-
Method Details
-
localCache
public static <K,V> org.infinispan.AdvancedCache<K,V> localCache(org.infinispan.Cache<K, V> cache) AddsFlag.CACHE_MODE_LOCAL
flag to the cache.- Parameters:
cache
-- Returns:
- Cache with the flag applied.
-
skipCacheLoadersIfRemoteStoreIsEnabled
public static <K,V> org.infinispan.AdvancedCache<K,V> skipCacheLoadersIfRemoteStoreIsEnabled(org.infinispan.Cache<K, V> cache) AddsFlag.SKIP_CACHE_LOAD
andFlag.SKIP_CACHE_STORE
flags to the cache.- Parameters:
cache
-- Returns:
- Cache with the flags applied.
-
skipCacheStoreIfRemoteCacheIsEnabled
public static <K,V> org.infinispan.AdvancedCache<K,V> skipCacheStoreIfRemoteCacheIsEnabled(org.infinispan.Cache<K, V> cache) AddsFlag.SKIP_CACHE_STORE
flag to the cache.- Parameters:
cache
-- Returns:
- Cache with the flags applied.
-