Class DelegatingNullSafeCache<K,​V>

    • Constructor Detail

      • DelegatingNullSafeCache

        public DelegatingNullSafeCache​(Cache<K,​V> delegate)
    • Method Detail

      • get

        public V get​(K key)
        Description copied from interface: Cache
        Get cache entry. If the cache does not currently contain an entry under this key, then one is created, using the CacheFunction given when the cache was created.
        Specified by:
        get in interface Cache<K,​V>
        Parameters:
        key - key of cache entry
        Returns:
        value, never null (but may be an Optional)
      • get

        public com.google.common.collect.ImmutableMap<K,​V> get​(Iterable<? extends K> keys)
        Description copied from interface: Cache
        Get several cache entries, in one go.
        Specified by:
        get in interface Cache<K,​V>
        Parameters:
        keys - list of keys of cache entries
        Returns:
        Map of cache keys and values (neither ever null, but may be an Optional)