Class MemoryCache<TInput, TCache>
Inheritance
object
MemoryCache<TInput, TCache>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: ETLBox.DataFlow
Assembly: ETLBox.dll
Syntax
public sealed class MemoryCache<TInput, TCache> : ICacheManager<TInput, TCache>, ILimitedCache where TCache : class
Type Parameters
Name | Description |
---|
TInput | |
TCache | |
Constructors
MemoryCache()
Declaration
Fields
DEFAULT_MAX_CACHE_SIZE
Declaration
public const int DEFAULT_MAX_CACHE_SIZE = 10000
Field Value
Properties
CopyIntoCacheFunc
Declaration
public Func<TInput, TCache> CopyIntoCacheFunc { get; set; }
Property Value
Type | Description |
---|
System.Func<T, TResult><TInput, TCache> | |
Dict
Declaration
public IDictionary<object, TCache> Dict { get; }
Property Value
Type | Description |
---|
System.Collections.Generic.IDictionary<TKey, TValue><object, TCache> | |
GetCacheUniqueKeyFunc
Declaration
public Func<TCache, object> GetCacheUniqueKeyFunc { get; set; }
Property Value
Type | Description |
---|
System.Func<T, TResult><TCache, object> | |
Declaration
public Func<TInput, object> GetInputUniqueKeyFunc { get; set; }
Property Value
Type | Description |
---|
System.Func<T, TResult><TInput, object> | |
MaxCacheSize
Declaration
public int MaxCacheSize { get; set; }
Property Value
Records
Declaration
public IEnumerable<TCache> Records { get; }
Property Value
Type | Description |
---|
System.Collections.Generic.IEnumerable<T><TCache> | |
Methods
Add(TInput)
Declaration
public void Add(TInput row)
Parameters
Type | Name | Description |
---|
TInput | row | |
Add(TInput[])
Declaration
public void Add(TInput[] batch)
Parameters
Type | Name | Description |
---|
TInput[] | batch | |
Contains(TInput)
Declaration
public bool Contains(TInput row)
Parameters
Type | Name | Description |
---|
TInput | row | |
Returns
Contains(TInput[])
Declaration
public bool Contains(TInput[] batch)
Parameters
Type | Name | Description |
---|
TInput[] | batch | |
Returns
Init()
Declaration
Implements