Table of Contents

Interface ICacheStorage<TKey, TValue>

Namespace
Executables.Operations
Assembly
executables.dll

Defines key-value storage used by cache operator.

public interface ICacheStorage<in TKey, TValue>

Type Parameters

TKey

Cache key type.

TValue

Cached value type.

Methods

Add(TKey, TValue)

Adds a value associated with the specified key.

void Add(TKey key, TValue value)

Parameters

key TKey

Cache key.

value TValue

Value to store.

TryGetValue(TKey, out TValue)

Tries to get a cached value by key.

bool TryGetValue(TKey key, out TValue value)

Parameters

key TKey

Cache key.

value TValue

When this method returns, contains the cached value if found; otherwise default value.

Returns

bool

true when a value is found; otherwise false.