NearCacheManager is the contract point to manage all existing NearCache instances.
More...
#include <NearCacheManager.h>
NearCacheManager is the contract point to manage all existing NearCache instances.
◆ clearNearCache()
bool hazelcast::client::internal::nearcache::NearCacheManager::clearNearCache |
( |
const std::string & |
name | ) |
|
Clears NearCache instance associated with given.
but not removes it.
- Parameters
-
- Returns
- if NearCache was found and cleared, otherwise
◆ destroyNearCache()
bool hazelcast::client::internal::nearcache::NearCacheManager::destroyNearCache |
( |
const std::string & |
name | ) |
|
Destroys NearCache instance associated with given.
and also removes it.
- Parameters
-
- Returns
- if NearCache was found and destroyed, otherwise
◆ getNearCache()
template<typename K , typename V , typename KS >
boost::shared_ptr<NearCache<KS, V> > hazelcast::client::internal::nearcache::NearCacheManager::getNearCache |
( |
const std::string & |
name | ) |
|
|
inline |
Gets the NearCache instance associated with given.
.
- Parameters
-
name | the name of the NearCache instance will be got |
<K> | the type of the key for Near Cache |
<V> | the type of the value for Near Cache |
- Returns
- the NearCache instance associated with given
◆ getOrCreateNearCache()
template<typename K , typename V , typename KS >
boost::shared_ptr<NearCache<KS, V> > hazelcast::client::internal::nearcache::NearCacheManager::getOrCreateNearCache |
( |
const std::string & |
name, |
|
|
const client::config::NearCacheConfig< K, V > & |
nearCacheConfig |
|
) |
| |
|
inline |
Creates a new NearCache with given configurations or returns existing one.
- Parameters
-
name | the name of the NearCache to be created or existing one |
nearCacheConfig | the NearCacheConfig of the NearCache to be created |
<K> | the key type of the NearCache |
<KS> | the key type of the underlying cache store (this is usually Data) |
<V> | the value type of the NearCache |
- Returns
- the created or existing NearCache instance associated with given
◆ listAllNearCaches()
std::vector<boost::shared_ptr<BaseNearCache> > hazelcast::client::internal::nearcache::NearCacheManager::listAllNearCaches |
( |
| ) |
|
The documentation for this class was generated from the following file: