MemoryCache<TInput, TCache>

Class MemoryCache<TInput, TCache>

Inheritance
MemoryCache<TInput, TCache>
Implements
ICacheManager<TInput, TCache>
Namespace: ETLBox.DataFlow
Assembly: ETLBox.dll
Syntax
    public sealed class MemoryCache<TInput, TCache> : ICacheManager<TInput, TCache> where TCache : class
Type Parameters
NameDescription
TInput
TCache

Fields

DEFAULT_MAX_CACHE_SIZE

Declaration
    public const int DEFAULT_MAX_CACHE_SIZE = 10000
Field Value
TypeDescription
int

Properties

CacheKeySelector

Declaration
    public Func<TCache, object> CacheKeySelector { get; set; }
Property Value
TypeDescription
Func<TCache, object>

CachedData

Declaration
    public CachedData<TCache> CachedData { get; }
Property Value
TypeDescription
CachedData<TCache>

InputIntoCacheConversion

Declaration
    public Func<TInput, TCache> InputIntoCacheConversion { get; set; }
Property Value
TypeDescription
Func<TInput, TCache>

InputKeySelector

Declaration
    public Func<TInput, object> InputKeySelector { get; set; }
Property Value
TypeDescription
Func<TInput, object>

MaxCacheSize

Declaration
    public int MaxCacheSize { get; set; }
Property Value
TypeDescription
int

PermitMultipleEntriesPerKey

Declaration
    public bool PermitMultipleEntriesPerKey { get; set; }
Property Value
TypeDescription
bool

Methods

EnsureAdded(TInput)

Declaration
    public void EnsureAdded(TInput row)
Parameters
TypeNameDescription
TInputrow

EnsureAdded(TInput[])

Declaration
    public void EnsureAdded(TInput[] batch)
Parameters
TypeNameDescription
TInput[]batch

Evict()

Declaration
    public void Evict()

InitialLoad()

Declaration
    public void InitialLoad()

Implements