Class AbstractCacheStore<K,​V>

    • Constructor Detail

      • AbstractCacheStore

        public AbstractCacheStore()
    • Method Detail

      • store

        public void store​(K key,
                          V value)
        Store the specified value under the specified key in the underlying store. This method is intended to support both key/value creation and value update for a specific key.
        Specified by:
        store in interface CacheStore<K,​V>
        Parameters:
        key - key to store the value under
        value - value to be stored
        Throws:
        UnsupportedOperationException - if this implementation or the underlying store is read-only
      • erase

        public void erase​(K key)
        Remove the specified key from the underlying store if present.
        Specified by:
        erase in interface CacheStore<K,​V>
        Parameters:
        key - key whose mapping is being removed from the cache
        Throws:
        UnsupportedOperationException - if this implementation or the underlying store is read-only