Interface ICache
Interface for cache.
Namespace: TuringTrader.SimulatorV2
Assembly: TuringTrader.Simulator.dll
Syntax
public interface ICache
Methods
| Improve this Doc View SourceFetch<T>(string, Func<T>)
Retrieve data from cache
Declaration
T Fetch<T>(string cacheId, Func<T> missFun)
Parameters
Type | Name | Description |
---|---|---|
string | cacheId | unique identifier for requested data |
System.Func<TResult><T> | missFun | method to retrieve data on cache miss |
Returns
Type | Description |
---|---|
T | cached data |
Type Parameters
Name | Description |
---|---|
T | type of cached data |