Interface CacheProvider


  • @Deprecated
    public interface CacheProvider
    Deprecated.
    WARNING: Do not use this interface. It is no longer used internally and will be removed in the future. Use Session interface instead.

    A deprecated interface for cache service provider.

    Since:
    Coherence 12.2.1
    Author:
    lh 2015.06.29
    See Also:
    Session
    • Method Detail

      • ensureCache

        default NamedCache<Object,​Object> ensureCache​(String sCacheName,
                                                            ClassLoader loader)
        Deprecated.
        Ensure an Object-based cache for the given name.
        Parameters:
        sCacheName - the cache name
        loader - ClassLoader that should be used to deserialize objects in the cache
        Returns:
        a NamedCache created
      • ensureTypedCache

        <K,​V> NamedCache<K,​V> ensureTypedCache​(String sCacheName,
                                                           ClassLoader loader,
                                                           TypeAssertion<K,​V> assertion)
        Deprecated.
        Ensure a cache for the given name satisfying the specified type assertion.
        Parameters:
        sCacheName - the cache name
        loader - the ClassLoader to use for deserializing cache entries
        assertion - the TypeAssertion for asserting the type of keys and values for the NamedCache
        Returns:
        a NamedCache created
        Since:
        Coherence 12.2.1