Destroys the value with the specified key in the local cache only.
Destroy removes not only the value but also the key and entry
from this region.
Namespace: GemStone.GemFire.Cache
Assembly: GemStone.GemFire.Cache (in GemStone.GemFire.Cache.dll)
Version: 2.7.0.0
Syntax
| C# |
|---|
public void LocalDestroy( CacheableKey key, IGFSerializable cacheListenerArg ) |
| Visual Basic (Declaration) |
|---|
Public Sub LocalDestroy ( _ key As CacheableKey, _ cacheListenerArg As IGFSerializable _ ) |
| Visual C++ |
|---|
public: void LocalDestroy ( CacheableKey^ key, IGFSerializable^ cacheListenerArg ) |
Parameters
- key
- CacheableKey
the key of the entry to destroy
- cacheListenerArg
- IGFSerializable
a user-defined parameter to pass to cache listeners triggered by this method
Remarks
No ICacheWriter is invoked.
Does not update any CacheStatistics.
Exceptions
| Exception | Condition |
|---|---|
| GemStone.GemFire.Cache..::IllegalArgumentException | if key is null |
| GemStone.GemFire.Cache..::IllegalStateException | if this region has mirroring enabled |
| GemStone.GemFire.Cache..::EntryNotFoundException | if the entry does not exist in this region locally |