Class XanthicSpringCache

java.lang.Object
org.springframework.cache.support.AbstractValueAdaptingCache
io.github.xanthic.cache.spring.XanthicSpringCache
All Implemented Interfaces:
org.springframework.cache.Cache

public class XanthicSpringCache extends org.springframework.cache.support.AbstractValueAdaptingCache
  • Constructor Details

    • XanthicSpringCache

      public XanthicSpringCache(String name, io.github.xanthic.cache.api.Cache<Object,Object> cache)
  • Method Details

    • getName

      @NotNull public @NotNull String getName()
    • getNativeCache

      @NotNull public @NotNull Object getNativeCache()
    • get

      public <T> T get(@NotNull @NotNull Object key, @NotNull @NotNull Callable<T> valueLoader)
    • put

      public void put(@NotNull @NotNull Object key, Object value)
    • putIfAbsent

      public org.springframework.cache.Cache.ValueWrapper putIfAbsent(@NotNull @NotNull Object key, Object value)
    • evict

      public void evict(@NotNull @NotNull Object key)
    • evictIfPresent

      public boolean evictIfPresent(@NotNull @NotNull Object key)
    • clear

      public void clear()
    • lookup

      protected Object lookup(@NotNull @NotNull Object key)
      Specified by:
      lookup in class org.springframework.cache.support.AbstractValueAdaptingCache