Tortuga.Chain Namespace
Tortuga.Chain.CommandBuilders Namespace
Tortuga.Chain.Metadata Namespace

ObjectCacheAdapter..::..TryRead<(Of <(<'T>)>)> Method

Tries the read from cache.

Namespace:  Tortuga.Chain.Core
Assembly:  Tortuga.Chain.Core (in Tortuga.Chain.Core.dll)

Syntax


public bool TryRead<T>(
	string cacheKey,
	out T result
)
Public Function TryRead(Of T) ( _
	cacheKey As String, _
	<OutAttribute> ByRef result As T _
) As Boolean
public:
generic<typename T>
bool^ TryRead(
	String^ cacheKey, 
	[OutAttribute] T% result
)

Type Parameters

T

Parameters

cacheKey
Type: String
The cache key.
result
Type: T%
The result.

Return Value

true if XXXX, false otherwise.

Exceptions


ExceptionCondition
[ArgumentException]
[InvalidOperationException]