Whatever message this page gives is out now! Go check it out!

ORMEvictEntity

Last update:
May 18, 2026

Description

This method is used to evict items for the given entity name, from the secondary cache. If the primary key is specified, then the data of the entity with that primary key is evicted. Primary key should be a value in case of simple primary key or should be a struct in case of composite primary key.

Category

See Also

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

Function Syntax

ORMEvictEntity(entityname, primarykey)

Parameters

Parameter
Description
entityname
Entity name of the persistent CFC
primarykey
Primary key value of the component

Example

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

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page