Checks for a valid entry corresponding to the specified key in the cache, and returns the corresponding value if it is.

Namespace: Tangosol.Net.Cache
Assembly: Coherence (in Coherence.dll) Version: 12.1.2.0 (12.1.2.0)

Syntax

C#
public virtual Object Peek(
	Object key
)

Parameters

key
Type: System..::..Object
The key to "peek" into the cache for.

Return Value

The value corresponding to the specified key.

Remarks

If it is not in the cache, returns null, and does not attempt to load the value using its cache loader.

See Also