This API is preliminary and subject to change.
Acts as a callback for IEvictionStrategy<(Of <(<'TKey, TValue>)>)> that accept eviction commands.
Declaration Syntax
C# | Visual Basic | Visual C++ | J# |
public interface IEvictionFacade<TKey>
Public Interface IEvictionFacade(Of TKey)
generic<typename TKey> public interface class IEvictionFacade
Generic Template Parameters
- TKey
- Type of key.
Members
All Members | Methods | ||||
Icon | Member | Description |
---|---|---|
Evict(array<TKey>[]()[][]) |
Evict cache entries, the cache implementation must evict the cache entries that correlates to the supplied keys.
Remarks
Calling this method may assume thread safetly only if it is synchroniously through the thread that called the eviction strategy
methods. Otherwise, for instance a background timer thread that evict items from the cache on a timely basis, a call to LockStorage()()()() must be
called to ensure no concurrent modifications are being done while evicting.
| |
EvictAll()()()() |
Evict all the items in the cache, the cache implementation must evict all the cache entries.
Remarks
Calling this method may assume thread safetly only if it is synchroniously through the thread that called the eviction strategy
methods. Otherwise, for instance a background timer thread that evict items from the cache on a timely basis, a call to LockStorage()()()() must be
called to ensure no concurrent modifications are being done while evicting.
| |
LockStorage()()()() |
Locks the storage, any concurrent operation will block until UnlockStorage()()()() is called.
| |
UnlockStorage()()()() |
Unlock the storage, A call to this method should follow a previous LockStorage()()()() call.
|