ormEvictEntity

This will remove all the entries for the specified component name from the entity cache.

ormEvictEntity(entityName [, primaryKey]) → returns void

Argument Reference

entityName string
Required

Entity name of the persistent CFC

primaryKey string

Primary key value of the component

Examples
Sample code invoking the ormEvictEntity function

To evict all the cache data of CArtist entity

<cfset ormEvictEntity("CArtists")>

To evict the cache data of CArtists entity whose primary key is 1

<cfset ormEvictEntity("CArtists", 1)>

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub