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
TKeyCache key type.
TValueCached value type.
Methods
Add(TKey, TValue)
Adds a value associated with the specified key.
void Add(TKey key, TValue value)
Parameters
keyTKeyCache key.
valueTValueValue to store.
TryGetValue(TKey, out TValue)
Tries to get a cached value by key.
bool TryGetValue(TKey key, out TValue value)
Parameters
keyTKeyCache key.
valueTValueWhen this method returns, contains the cached value if found; otherwise default value.