Class Cache
Simple cache. The cache is essential to TuringTrader's automagic indicators and used for the object cache.
Inheritance
object
Cache
Implements
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: TuringTrader.SimulatorV2
Assembly: TuringTrader.Simulator.dll
Syntax
public class Cache : ICache
Methods
| Improve this Doc View SourceClear()
Clear cache contents.
Declaration
public void Clear()
Fetch<T>(string, Func<T>)
Retrieve object from cache, or calculate result.
Declaration
public T Fetch<T>(string cacheId, Func<T> missFun)
Parameters
Type | Name | Description |
---|---|---|
string | cacheId | cache id |
System.Func<TResult><T> | missFun | retrieval function for cache miss |
Returns
Type | Description |
---|---|
T | cached object |
Type Parameters
Name | Description |
---|---|
T |