evictQueries

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" );

Last updated