RegionInvalidate Method (CacheableKey, IGFSerializable) |
Invalidates the entry with the specified key,
passing the callback argument
to any cache
listeners that are invoked in the operation.
Namespace: GemStone.GemFire.CacheAssembly: Gemstone.Gemfire.Cache (in Gemstone.Gemfire.Cache.dll) Version: 9.0.6.18
Syntaxpublic void Invalidate(
CacheableKey key,
IGFSerializable callback
)
Public Sub Invalidate (
key As CacheableKey,
callback As IGFSerializable
)
public:
void Invalidate(
CacheableKey^ key,
IGFSerializable^ callback
)
member Invalidate :
key : CacheableKey *
callback : IGFSerializable -> unit
Parameters
- key
- Type: GemStone.GemFire.CacheCacheableKey
key of the value to be invalidated - callback
- Type: GemStone.GemFire.CacheIGFSerializable
a user-defined parameter to pass to callback events triggered by this method
Exceptions
Remarks
Invalidate only removes the value from the entry -- the key is kept intact.
To completely remove the entry, call Destroy(ICacheableKey, IGFSerializable).
The invalidate is not propogated to the Gemfire cache server to which it is connected with.
Does not update any CacheStatistics.
See AlsoReference
[!:ICacheListener.AfterInvalidate]