IExecutionCache.

TryGetValue<TValue>(IDocument, string, TValue) Method

Summary

Attempts to get a typed cached value from a document and string key.
Assembly
Wyam.Common.dll
Namespace
Wyam.Common.Caching
Containing Type
IExecutionCache

Syntax

bool TryGetValue<TValue>(IDocument document, string key, out TValue value)

Type Parameters

Name Description
TValue The type of the cached value.

Parameters

Name Type Description
document IDocument The document key.
key string The string key.
value TValue The cached value.

Return Value

Type Description
bool true for a cache hit, false for a cache miss.
GitHub