- TIBCO BusinessEvents®
- Standard
- Cluster
- DataGrid

# 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

Name | Type | Description
--- | --- | ---
`cacheName` | `String` | Name of the targeted cache returned by `CacheName`
`filter` | `Object` | Filter string with eviction condition. Use `null` if all instances in the cache needs to be evicted.
`deleteFromPersistence` | `boolean` | Flag 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

Type | Description
--- | ---
`void` |

## Cautions

none