Interface CacheRegistry


  • @Deprecated
    public interface CacheRegistry
    Deprecated.
    since 5.0
    Keeps an information about relationship between a type and a key. One key can depend on several types, and multiple keys can be "registered" on a single type. Registry allows to perform bulk invalidation of multiple keys using a single type. Registry implementations must be thread safe (there's no external synchronization!)
    • Method Detail

      • invalidate

        java.util.Collection<RegistrableCacheKey> invalidate​(java.lang.Object typeCode)
        Deprecated.
        Invalidates a single typeCode in the registry.
        We are not removing entries (queries) from registry in this method. Because we cannot be sure if isAllowInvalidation() in cache controller actually allows to remove it from region.
        Returns:
        A collection of keys that have been registered on given typeCode prior to invalidation.
      • evict

        void evict​(RegistrableCacheKey key)
        Deprecated.
        Handles eviction, that is a removal of a single key.
      • clear

        void clear()
        Deprecated.
        Clears registry. After this method completes, registry does not contain any mappings.