Show / Hide Table of Contents

Class Cache

Simple cache. The cache is essential to TuringTrader's automagic indicators and used for the object cache.

Inheritance
object
Cache
Implements
ICache
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 Source

Clear()

Clear cache contents.

Declaration
public void Clear()
| Improve this Doc View Source

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

Implements

ICache
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2011-2023, Bertram Enterprises LLC dba TuringTrader.com