User Guide Cancel

ORMEvictQueries

 

Description

This method is used to evict the data of all the queries from the default query cache of the specified data source. If cache name is specified, then the data of all queries belonging to the cache region with the given cache name are evicted.If no data source is specified, the default query cache of the default data source is evicted.

Category

ORM functions

See Also

ORMEvictEntityORMEvictCollectionEvict content from secondary cache in Caching in the Developing ColdFusion Applications

Syntax

ORMEvictQueries(cachename) ORMEvictQueries(cachename, datasource)
ORMEvictQueries(cachename) ORMEvictQueries(cachename, datasource)
ORMEvictQueries(cachename) ORMEvictQueries(cachename, datasource)

Parameters

Parameter

Description

cachename

Name of the cache region that you want to evict.

datasource

Name of the data source whose cache you want to evict. If you do not specify the cache, the default query cache is evicted.

Example

Evicts the data of all the queries from the default query cache.

<cfset ORMEvictQueries()>
<cfset ORMEvictQueries()>
<cfset ORMEvictQueries()>

Evicts the data of all the queries from the cache region with the name availableArtsCache.

<cfset ORMEvictQueries("availableArtsCache")>
<cfset ORMEvictQueries("availableArtsCache")>
<cfset ORMEvictQueries("availableArtsCache")>

Get help faster and easier

New user?