Oracle Coherence for C++ API
Release 3.7.1.0

E22845-01

CacheStore Class Reference

#include <coherence/net/cache/CacheStore.hpp>

Inherits CacheLoader.

Inherited by AbstractCacheStore [virtual].

List of all members.


Detailed Description

A cache store.

Author:
jh 2008.03.12
 

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.

Member Function Documentation

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.

Parameters:
 vKey key to store the value under
 ohValue value to be stored
Exceptions:
 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.

Parameters:
 vMapEntries a Map of any number of keys and values to store
Exceptions:
 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.

Parameters:
 vKey key whose mapping is being removed from the cache
Exceptions:
 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.

Parameters:
 vColKeys keys whose mappings are being removed from the cache
Exceptions:
 UnsupportedOperationException if this implementation or the underlying store is read-only

Implemented in AbstractCacheStore.


The documentation for this class was generated from the following file:
Copyright © 2000, 2011, Oracle and/or its affiliates. All rights reserved.