Class XanthicSpringCache

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

public class XanthicSpringCache extends org.springframework.cache.support.AbstractValueAdaptingCache
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.springframework.cache.Cache

    org.springframework.cache.Cache.ValueRetrievalException, org.springframework.cache.Cache.ValueWrapper
  • Constructor Summary

    Constructors
    Constructor
    Description
    XanthicSpringCache(String name, io.github.xanthic.cache.api.Cache<Object,Object> cache)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    evict(@NotNull Object key)
     
    <T> T
    get(@NotNull Object key, @NotNull Callable<T> valueLoader)
     
    @NotNull String
     
    @NotNull Object
     
    protected Object
    lookup(@NotNull Object key)
     
    void
    put(@NotNull Object key, Object value)
     

    Methods inherited from class org.springframework.cache.support.AbstractValueAdaptingCache

    fromStoreValue, get, get, isAllowNullValues, toStoreValue, toValueWrapper

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface org.springframework.cache.Cache

    evictIfPresent, invalidate, putIfAbsent
  • 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)
    • evict

      public void evict(@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