ORMEvictCollection

Description

This method is used to evict all the collection or association data for the given component name and collection name, from the secondary cache. If the primary key is specified, then, the collection or association data of the entity with the primary key is evicted.

Category

ORM functions

See Also

ORMEvictEntity, ORMEvictQueries, Evict content from secondary cache in Developing ColdFusion Applications

Function Syntax

ormevictcollection("<component_name>", "<collection_name>", [primarykey])

Parameters

Parameter

Description

component name

Name of the ColdFusion component (CFC)

collection name

Name of the collection in the component

primary key

Primary key of the collection or association data of the entity

Example

To evict all the association or collection data of collection arts belonging to the component CArtists:

<cfset ORMEvictCollection("CArtists", "arts")>