Class CaffeineCache

  • All Implemented Interfaces:
    Cache

    public class CaffeineCache
    extends java.lang.Object
    implements Cache
    • Constructor Summary

      Constructors 
      Constructor Description
      CaffeineCache​(int size)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(@NonNull java.lang.String key)  
      java.lang.Object get​(@NonNull java.lang.String key)  
      java.util.List<java.lang.String> keys()  
      void set​(@NonNull java.lang.String key, @NonNull java.lang.Object value)  
      • Methods inherited from class java.lang.Object

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

      • CaffeineCache

        public CaffeineCache​(int size)
    • Method Detail

      • set

        public void set​(@NonNull
                        @NonNull java.lang.String key,
                        @NonNull
                        @NonNull java.lang.Object value)
        Specified by:
        set in interface Cache
      • get

        @Nullable
        public java.lang.Object get​(@NonNull
                                    @NonNull java.lang.String key)
        Specified by:
        get in interface Cache
      • delete

        public void delete​(@NonNull
                           @NonNull java.lang.String key)
        Specified by:
        delete in interface Cache
      • keys

        public java.util.List<java.lang.String> keys()
        Specified by:
        keys in interface Cache