Class NoopCacheService<K,​V>

  • Type Parameters:
    K - the type of key to use
    V - the type of value to cache
    All Implemented Interfaces:
    Direct Known Subclasses:

    public class NoopCacheService<K,​V>
    extends Object
    implements CacheService<K,​V>
    A no-op (pass-through) cache service for Trellis.
    • Constructor Detail

      • NoopCacheService

        public NoopCacheService()
    • Method Detail

      • get

        public V get​(K key,
                     Function<K,​V> mappingFunction)
        Description copied from interface: CacheService
        Get a value from the cache.
        Specified by:
        get in interface CacheService<K,​V>
        key - the key
        mappingFunction - attempts to compute a mapping for the specified key
        a value for that key, never null