Class NoopCacheService<K,​V>

  • Type Parameters:
    K - the type of key to use
    V - the type of value to cache
    All Implemented Interfaces:
    CacheService<K,​V>
    Direct Known Subclasses:
    NoopProfileCache

    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>
        Parameters:
        key - the key
        mappingFunction - attempts to compute a mapping for the specified key
        Returns:
        a value for that key, never null