This will remove all the entries for the specified component name from the entity cache.
ormEvictEntity(entityName [, primaryKey])
returns void
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| entityName | string | Yes | Entity name of the persistent CFC | |
| primaryKey | string | No | Primary key value of the component |
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)>