Hazelcast C++ Client
|
NearCache is the contract point to store keys and values in underlying com.hazelcast.cache.impl.nearcache.NearCacheRecordStore. More...
#include <NearCache.h>
Public Member Functions | |
void | initialize () |
virtual const std::string & | getName () const |
Gets the name of the this com.hazelcast.cache.impl.nearcache.NearCache instance. More... | |
virtual boost::shared_ptr< V > | get (const boost::shared_ptr< K > &key) |
Gets the value associated with the given key . More... | |
virtual void | put (const boost::shared_ptr< K > &key, const boost::shared_ptr< V > &value) |
Puts (associates) a value with the given key . More... | |
virtual void | put (const boost::shared_ptr< K > &key, const boost::shared_ptr< serialization::pimpl::Data > &value) |
Puts (associates) a value with the given key . More... | |
virtual bool | remove (const boost::shared_ptr< K > &key) |
Removes the value associated with the given key . More... | |
virtual bool | isInvalidatedOnChange () const |
virtual const config::InMemoryFormat | getInMemoryFormat () const |
Gets the com.hazelcast.config.InMemoryFormat of the storage for internal records. More... | |
virtual monitor::NearCacheStats & | getNearCacheStats ()=0 |
Get the com.hazelcast.monitor.NearCacheStats instance to monitor this store. More... | |
virtual int | size () const |
Gets the count of stored records. More... | |
Static Public Attributes | |
static boost::shared_ptr< V > | NULL_OBJECT = boost::shared_ptr<V>(new V()) |
NULL Object. | |
static const int | DEFAULT_EXPIRATION_TASK_INITIAL_DELAY_IN_SECONDS = 5 |
Default expiration task initial delay time as seconds. | |
static const int | DEFAULT_EXPIRATION_TASK_DELAY_IN_SECONDS = 5 |
Default expiration task delay time as seconds. | |
NearCache is the contract point to store keys and values in underlying com.hazelcast.cache.impl.nearcache.NearCacheRecordStore.
<K> | the type of the key |
<V> | the type of the value |
This is a no-op interface class. See InvalidationAwareNearCache for the actual implementation
|
inlinevirtual |
Gets the value associated with the given key
.
key | the key of the requested value |
key
|
inlinevirtual |
Gets the com.hazelcast.config.InMemoryFormat of the storage for internal records.
|
inlinevirtual |
Gets the name of the this
com.hazelcast.cache.impl.nearcache.NearCache instance.
this
com.hazelcast.cache.impl.nearcache.NearCache instance
|
pure virtual |
Get the com.hazelcast.monitor.NearCacheStats instance to monitor this store.
|
inlinevirtual |
|
inlinevirtual |
Puts (associates) a value with the given key
.
key | the key of the value will be stored |
value | the value will be stored |
|
inlinevirtual |
Puts (associates) a value with the given key
.
key | the key of the value will be stored |
value | the value as Data which will be stored |
|
inlinevirtual |
Removes the value associated with the given key
.
key | the key of the value will be removed |
|
inlinevirtual |
Gets the count of stored records.