evictQueries

Last updated 10 months ago

Evict all queries in the default cache or the cache region that is passed in.

Returns

  • This function returns void

Arguments

Key

Type

Required

Default

Description

cacheName

string

No

---

‚Äč

datasource

string

No

---

The datasource to use

Examples

// evict queries that are in the default hibernate cache
ormService.evictQueries();
// evict queries for this service
ormService.evictQueries( ormService.getQueryCacheRegion() );
// evict queries for my artists
ormService.evictQueries( "MyArtits" );