#include <coherence/net/cache/CacheStore.hpp>
Inherits CacheLoader.
Inherited by AbstractCacheStore [virtual]
.
Public Types | |
typedef spec::Handle | Handle |
CacheStore Handle definition. | |
typedef spec::View | View |
CacheStore View definition. | |
typedef spec::Holder | Holder |
CacheStore Holder definition. | |
Public Member Functions | |
virtual void | store (Object::View vKey, Object::Holder ohValue)=0 |
Store the specified value under the specified key in the underlying store. | |
virtual void | storeAll (Map::View vMapEntries)=0 |
Store the specified values under the specified keys in the underlying store. | |
virtual void | erase (Object::View vKey)=0 |
Remove the specified key from the underlying store if present. | |
virtual void | eraseAll (Collection::View vColKeys)=0 |
Remove the specified keys from the underlying store if present. |
virtual void store | ( | Object::View | vKey, | |
Object::Holder | ohValue | |||
) | [pure virtual] |
Store the specified value under the specified key in the underlying store.
This method is intended to support both key/value creation and value update for a specific key.
vKey | key to store the value under | |
ohValue | value to be stored |
UnsupportedOperationException | if this implementation or the underlying store is read-only |
Implemented in AbstractCacheStore.
virtual void storeAll | ( | Map::View | vMapEntries | ) | [pure virtual] |
Store the specified values under the specified keys in the underlying store.
This method is intended to support both key/value creation and value update for the specified keys.
vMapEntries | a Map of any number of keys and values to store |
UnsupportedOperationException | if this implementation or the underlying store is read-only |
Implemented in AbstractCacheStore.
virtual void erase | ( | Object::View | vKey | ) | [pure virtual] |
Remove the specified key from the underlying store if present.
vKey | key whose mapping is being removed from the cache |
UnsupportedOperationException | if this implementation or the underlying store is read-only |
Implemented in AbstractCacheStore.
virtual void eraseAll | ( | Collection::View | vColKeys | ) | [pure virtual] |
Remove the specified keys from the underlying store if present.
vColKeys | keys whose mappings are being removed from the cache |
UnsupportedOperationException | if this implementation or the underlying store is read-only |
Implemented in AbstractCacheStore.