Class CacheBase<TKey, TValue>
Inheritance
System.Object
CacheBase<TKey, TValue>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ExtendedXmlSerializer.Core.Sources
Assembly: ExtendedXmlSerializer.dll
Syntax
public abstract class CacheBase<TKey, TValue> : ITableSource<TKey, TValue>, ISpecification<TKey>, IParameterizedSource<TKey, TValue>, IAssignable<TKey, TValue>
Type Parameters
TKey
|
TValue
|
Constructors
CacheBase()
Declaration
protected CacheBase()
CacheBase(ConcurrentDictionary<TKey, TValue>)
Declaration
protected CacheBase(ConcurrentDictionary<TKey, TValue> store)
Parameters
System.Collections.Concurrent.ConcurrentDictionary<TKey, TValue>
store
|
CacheBase(IEqualityComparer<TKey>)
Declaration
protected CacheBase(IEqualityComparer<TKey> comparer)
Parameters
System.Collections.Generic.IEqualityComparer<TKey>
comparer
|
Methods
Assign(TKey, TValue)
Declaration
public void Assign(TKey key, TValue value)
Parameters
TKey
key
|
TValue
value
|
Implements
Create(TKey)
Declaration
protected abstract TValue Create(TKey parameter)
Parameters
TKey
parameter
|
Returns
TValue
|
Get(TKey)
Declaration
public TValue Get(TKey key)
Parameters
TKey
key
|
Returns
TValue
|
Implements
IsSatisfiedBy(TKey)
Declaration
public bool IsSatisfiedBy(TKey parameter)
Parameters
TKey
parameter
|
Returns
System.Boolean
|
Implements
Remove(TKey)
Declaration
public bool Remove(TKey key)
Parameters
TKey
key
|
Returns
System.Boolean
|