com.hazelcast.jet

## Interface JetCacheManager

-     public interface JetCacheManager

  `JetCacheManager` is the entry point to access JSR-107 (JCache) caches via `JetInstance` interface. Hazelcast Jet's `JetCacheManager` provides access to JCache caches configured cluster-wide, even when created by different JCache `CacheManager`s.

  Note that this interface is not related to JCache `CacheManager`. Its purpose is to host `ICacheJet` related methods, separately from `JetInstance`, in order to allow frameworks that make use of reflection and/or dynamic proxies (e.g. Mockito, Spring etc) to operate on `JetInstance` when JCache is not on the classpath.

  Since:
    0.5

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `<K,V> ICacheJet<K,V>` | `getCache(String name)` Returns the cache instance with the specified, optionally prefixed, cache name:

- - ### Method Detail

    - #### getCache

          <K,V> ICacheJet<K,V> getCache(String name)

      Returns the cache instance with the specified, optionally prefixed, cache name:

           <prefixed_cache_name> = [<uri_prefix>/][<cl_prefix>/]<simple_cache_name>

      where `<simple_cache_name>` is the cache name without any prefix.

      Parameters:
        `name` - the prefixed name of the cache
      Returns:
        the cache instance with the specified prefixed name
      Throws:
        `CacheNotExistsException` - if there is no configured or created cache with the specified prefixed name
        `IllegalStateException` - if a valid JCache library does not exist in the classpath (`1.0.0-PFD` or `0.x` versions are not valid)
      See Also:
        `CacheUtil.getPrefixedCacheName(String, java.net.URI, ClassLoader)`

Copyright © 2018. All rights reserved.