ormEvictEntity

This will remove all the entries for the specified component name from the entity cache.
ormEvictEntity(componentName,[id])

ormEvictEntity(componentName [, id]) → returns void

Argument Reference

componentName string
Required

No Help Available

id string

No Help Available

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