Interface RLocalCachedMapCache<K,V>

Type Parameters:
K - map key
V - map value
All Superinterfaces:
ConcurrentMap<K,V>, Map<K,V>, RDestroyable, RExpirable, RExpirableAsync, RLocalCachedMap<K,V>, RMap<K,V>, RMapAsync<K,V>, RMapCache<K,V>, RMapCacheAsync<K,V>, RObject, RObjectAsync

public interface RLocalCachedMapCache<K,V> extends RMapCache<K,V>, RLocalCachedMap<K,V>
Map object with entry expiration and local cache support.

Each instance maintains local cache to achieve fast read operations. Suitable for maps which used mostly for read operations and network roundtrip delays are undesirable.

Author:
Nikita Koksharov
  • Method Details

    • preloadCache

      void preloadCache()
      Pre-warm the cached values. Not guaranteed to load ALL values, but statistically will preload approximately all (all if no concurrent mutating activity) Intended for use with no-eviction caches where entire maps are locally cached
      Specified by:
      preloadCache in interface RLocalCachedMap<K,V>