Class MemoryCache<TInput, TCache>
Inheritance
MemoryCache<TInput, TCache>
Namespace: ETLBox.DataFlow
Assembly: ETLBox.dll
Syntax#
public sealed class MemoryCache<TInput, TCache> : ICacheManager<TInput, TCache> where TCache : class
Type Parameters
| Name | Description |
|---|
| TInput | |
| TCache | |
Fields
DEFAULT_MAX_CACHE_SIZE#
Declaration
public const int DEFAULT_MAX_CACHE_SIZE = 10000
Field Value
Properties
CacheKeySelector#
Declaration
public Func<TCache, object> CacheKeySelector { get; set; }
Property Value
CachedData#
Declaration
public CachedData<TCache> CachedData { get; }
Property Value
Declaration
public Func<TInput, TCache> InputIntoCacheConversion { get; set; }
Property Value
| Type | Description |
|---|
| Func<TInput, TCache> | |
Declaration
public Func<TInput, object> InputKeySelector { get; set; }
Property Value
MaxCacheSize#
Declaration
public int MaxCacheSize { get; set; }
Property Value
PermitMultipleEntriesPerKey#
Declaration
public bool PermitMultipleEntriesPerKey { get; set; }
Property Value
Methods
EnsureAdded(TInput)#
Declaration
public void EnsureAdded(TInput row)
Parameters
| Type | Name | Description |
|---|
| TInput | row | |
EnsureAdded(TInput[])#
Declaration
public void EnsureAdded(TInput[] batch)
Parameters
| Type | Name | Description |
|---|
| TInput[] | batch | |
Evict()#
Declaration
InitialLoad()#
Declaration
public void InitialLoad()
Implements#