MemoryCacheTTryGet Method

Try to get a value from the memory cache.

Definition

Namespace: Gemstone.Caching
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.175 -- Release Build+70cfebd19f80455d07e1cf93607e59f6af0e38f4
public static bool TryGet(
	string cacheName,
	out T? value
)

Parameters

cacheName  String
Name to use as cache key -- this should be unique per T.
value  T
Value from cache if already cached; otherwise, default value for T.

Return Value

Boolean
true if value was found in cache; otherwise, false.

See Also