Class JCache<K,​V>

    • Constructor Detail

      • JCache

        public JCache​(javax.cache.Cache<K,​V> cache)
    • Method Detail

      • get

        public V get​(K key)
        Specified by:
        get in interface AppCache<K,​V>
      • put

        public void put​(K key,
                        V value)
        Specified by:
        put in interface AppCache<K,​V>
      • putIfAbsent

        public boolean putIfAbsent​(K key,
                                   V value)
        Specified by:
        putIfAbsent in interface AppCache<K,​V>
      • containsKey

        public boolean containsKey​(K key)
        Specified by:
        containsKey in interface AppCache<K,​V>
      • remove

        public boolean remove​(K key)
        Specified by:
        remove in interface AppCache<K,​V>
      • remove

        public boolean remove​(K key,
                              V oldValue)
        Specified by:
        remove in interface AppCache<K,​V>
      • removeAll

        public void removeAll​(Set<? extends K> keys)
        Specified by:
        removeAll in interface AppCache<K,​V>
      • replace

        public boolean replace​(K key,
                               V value)
        Specified by:
        replace in interface AppCache<K,​V>
      • replace

        public boolean replace​(K key,
                               V oldValue,
                               V newValue)
        Specified by:
        replace in interface AppCache<K,​V>
      • clear

        public void clear()
        Specified by:
        clear in interface AppCache<K,​V>