Class CacheDecorators

java.lang.Object
org.keycloak.models.sessions.infinispan.CacheDecorators

public class CacheDecorators extends Object
Author:
Marek Posolda
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <K, V> org.infinispan.AdvancedCache<K,V>
    localCache(org.infinispan.Cache<K,V> cache)
    Adds Flag.CACHE_MODE_LOCAL flag to the cache.
    static <K, V> org.infinispan.AdvancedCache<K,V>
    skipCacheLoaders(org.infinispan.Cache<K,V> cache)
    Adds Flag.SKIP_CACHE_LOAD and Flag.SKIP_CACHE_STORE flags to the cache.
    static <K, V> org.infinispan.AdvancedCache<K,V>
    skipCacheStore(org.infinispan.Cache<K,V> cache)
    Adds Flag.SKIP_CACHE_STORE flag to the cache.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CacheDecorators

      public CacheDecorators()
  • Method Details

    • localCache

      public static <K, V> org.infinispan.AdvancedCache<K,V> localCache(org.infinispan.Cache<K,V> cache)
      Adds Flag.CACHE_MODE_LOCAL flag to the cache.
      Parameters:
      cache -
      Returns:
      Cache with the flag applied.
    • skipCacheLoaders

      public static <K, V> org.infinispan.AdvancedCache<K,V> skipCacheLoaders(org.infinispan.Cache<K,V> cache)
      Adds Flag.SKIP_CACHE_LOAD and Flag.SKIP_CACHE_STORE flags to the cache.
      Parameters:
      cache -
      Returns:
      Cache with the flags applied.
    • skipCacheStore

      public static <K, V> org.infinispan.AdvancedCache<K,V> skipCacheStore(org.infinispan.Cache<K,V> cache)
      Adds Flag.SKIP_CACHE_STORE flag to the cache.
      Parameters:
      cache -
      Returns:
      Cache with the flags applied.