Class NullsCache

  • All Implemented Interfaces:
    org.springframework.cache.Cache

    
    public class NullsCache
     implements Cache
                        
    Unified processing cache for nulls, supports weak and skip.
    * >0 : cache size, default ttl=3600s;
    * 0 : no nulls cached;
    * other values are not handled uniformly.
    
    Since:

    2022-03-13

    Author:

    trydofor

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      NullsCache(Cache cache, int size, int live)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      String getName()
      Object getNativeCache()
      Cache.ValueWrapper get(@NotNull() Object key)
      <T> T get(@NotNull() Object key, Class<T> type)
      <T> T get(@NotNull() Object key, @NotNull() Callable<T> valueLoader)
      void put(@NotNull() Object key, Object value)
      void evict(@NotNull() Object key)
      void clear()
      • Methods inherited from class org.springframework.cache.Cache

        evictIfPresent, invalidate, putIfAbsent, retrieve, retrieve
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait