Show / Hide Table of Contents

Interface ICache

Interface for cache.

Namespace: TuringTrader.SimulatorV2
Assembly: TuringTrader.Simulator.dll
Syntax
public interface ICache

Methods

| Edit this page View Source

Fetch<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

Func<T> missFun

method to retrieve data on cache miss

Returns
Type Description
T

cached data

Type Parameters
Name Description
T

type of cached data

  • Edit this page
  • View Source
In this article
Back to top Copyright © 2011-2023, Bertram Enterprises LLC dba TuringTrader.com