This API is preliminary and subject to change.
Provider an interface for an eviction strategy.
![](../icons/collapse_all.gif)
C# | Visual Basic | Visual C++ | J# |
public interface IEvictionStrategy<TKey, TValue> : IDisposable
Public Interface IEvictionStrategy(Of TKey, TValue) _ Inherits IDisposable
generic<typename TKey, typename TValue> public interface class IEvictionStrategy : IDisposable
![](../icons/collapse_all.gif)
- TKey
- Type of key.
- TValue
- Type of value.
![](../icons/collapse_all.gif)
All Members | Methods | Properties | |||
Icon | Member | Description |
---|---|---|
![]() | Clear()()()() |
Called when the cache is cleared
|
![]() | Dispose()()()() |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.) |
![]() | Initialize(IEvictionFacade<(Of <<'(TKey>)>>)) |
Called upon cache initialization
|
![]() | Introduce(TKey, TValue) |
Called when a new cache entry is inserted into the cache, this method can also be called for items that have already been introduced and not yet removed.
|
![]() | Remove(TKey, TValue) |
Called when a cache entry is removed from cache.
|
![]() | Remove(TKey) |
Called when a cache entry is removed from cache.
|
![]() | RequiresLockOnTouch |
States whether this eviction strategy requires lock on touch, if not multi threads can call touch concurrently.
|
![]() | Touch(TKey, TValue) |
Called when a cache entry is touched inside the cache. (Read operation)
|