GigaSpaces XAP.NET Documentation
IEvictionFacade<(Of <(<'TKey>)>)> Interface
Class LibraryGigaSpaces.Core.Cache.EvictionIEvictionFacade<(Of <(<'TKey>)>)>
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 BasicVisual C++J#
public interface IEvictionFacade<TKey>
Public Interface IEvictionFacade(Of TKey)
generic<typename TKey>
public interface class IEvictionFacade
J# supports the use of generic APIs, but not the declaration of new ones.
Generic Template Parameters
TKey
Type of key.
Members
All MembersMethods



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

Assembly: GigaSpaces.Core (Module: GigaSpaces.Core) Version: 16.1.0.0 (16.1.0)