Cluster.DataGrid.EvictCache()

Signature

void EvictCache(String cacheName, Object filter, boolean deleteFromPersistence)

Domain

ACTION

Description

Execute a query/filter based eviction from cache. Strictly to be used for entities with cache-only object management.
It will work only if "Store Properties As Individual Fields" is enabled in the CDD cluster setting.
It will not work with the history based properties.

Parameters

NameTypeDescription
cacheNameStringName of the targeted cache returned by CacheName
filterObjectFilter string with eviction condition. Use null if all instances in the cache needs to be evicted.
deleteFromPersistencebooleanFlag specifying whether or not evicted entities should be deleted from persistence. However, write-behind and shared-nothing modes require this flag to be set true.

Returns

TypeDescription
void

Cautions

none