Interface CacheManager


  • public interface CacheManager
    Lightweight interface for caching in Profile2
    Author:
    Steve Swinsburg (steve.swinsburg@gmail.com)
    • Method Detail

      • createCache

        <K,​V> Cache<K,​V> createCache​(String cacheName)
        Create a cache.
        Parameters:
        cacheName -
        Returns:
      • evictFromCache

        <K,​V> void evictFromCache​(Cache<K,​V> cache,
                                        K cacheKey)
        Helper to evict an item from a given cache.
        Parameters:
        cache - the cache to evict from
        cacheKey - the id for the data in the cache