com.ibm.storage.clientlibrary

Interface CacheWithLifetimes<K,V>

    • Method Detail

      • put

        void put(K key,
                 V value,
                 long lifetime)
        cache a key-value pair
        Parameters:
        key - key associated with value
        value - value associated with key
        lifetime - lifetime in milliseconds associated with data
      • putAll

        void putAll(Map<K,V> map,
                    long lifetime)
        cache one or more key-value pairs
        Parameters:
        map - map containing key-value pairs to cache
        lifetime - lifetime in milliseconds associated with each key-value pair. If the system supports revalidation of expired cache entries to determine if expired entries are really obsolete, a nonpositive value indicates cached entry should always be revalidated before being returned to client

Copyright © 2015. All rights reserved.