GigaSpaces XAP.NET Documentation
IEvictionStrategy<(Of <(<'TKey, TValue>)>)> Interface
Class LibraryGigaSpaces.Core.Cache.EvictionIEvictionStrategy<(Of <(<'TKey, TValue>)>)>
This API is preliminary and subject to change.
Provider an interface for an eviction strategy.
Declaration Syntax
C#Visual BasicVisual 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
J# supports the use of generic APIs, but not the declaration of new ones.
Generic Template Parameters
TKey
Type of key.
TValue
Type of value.
Members
All MembersMethodsProperties



IconMemberDescription
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)

Assembly: GigaSpaces.Core (Module: GigaSpaces.Core) Version: 16.3.0.0 (16.3.0)