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) _
	Implements 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
Type of key.
Type of value.
All MembersMethodsProperties

Called when the cache is cleared

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.

Called when a cache entry is removed from cache.

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: (