CoherenceTM v3.1.3
Copyright© 2000-2006 by Tangosol, Inc.

com.tangosol.net.cache
Interface CacheStore

All Superinterfaces:
CacheLoader
All Known Implementing Classes:
AbstractCacheStore, BinaryStoreCacheStore, HibernateCacheStore, MapCacheStore, ReadWriteBackingMap.CacheLoaderCacheStore, ReadWriteBackingMap.CacheStoreWrapper, VersionedBackingMap.CacheStoreWrapper

public interface CacheStore
extends CacheLoader

A JCache cache store.

Since:
Coherence 2.2
Author:
cp 2003.05.29

Method Summary
 void erase(Object oKey)
          Remove the specified key from the underlying store if present.
 void eraseAll(Collection colKeys)
          Remove the specified keys from the underlying store if present.
 void store(Object oKey, Object oValue)
          Store the specified value under the specified key in the underlying store.
 void storeAll(Map mapEntries)
          Store the specified values under the specified keys in the underlying store.
 
Methods inherited from interface com.tangosol.net.cache.CacheLoader
load, loadAll
 

Method Detail

store

void store(Object oKey,
           Object oValue)
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:
oKey - key to store the value under
oValue - value to be stored
Throws:
UnsupportedOperationException - if this implementation or the underlying store is read-only

storeAll

void storeAll(Map mapEntries)
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:
mapEntries - a Map of any number of keys and values to store
Throws:
UnsupportedOperationException - if this implementation or the underlying store is read-only

erase

void erase(Object oKey)
Remove the specified key from the underlying store if present.

Parameters:
oKey - key whose mapping is being removed from the cache
Throws:
UnsupportedOperationException - if this implementation or the underlying store is read-only

eraseAll

void eraseAll(Collection colKeys)
Remove the specified keys from the underlying store if present.

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

CoherenceTM v3.1.3
Copyright© 2000-2006 by Tangosol, Inc.