For the complete documentation index, see llms.txt. This page is also available as Markdown.

ORMEvictEntity

Evict all entity data for this entity name from the second-level cache.

Method Signature

ORMEvictEntity(entityName=[String], primaryKey=[String])

Arguments

Argument
Type
Required
Description
Default

entityName

String

true

The name of the entity on which to evict all cached data.

primaryKey

String

false

Optional primary key of the entity instance for which to evict cached data. If not provided, all cached data for the entity will be evicted.

Examples

Evict All Entities by Type

Clear second-level cache entries for a full entity type.

ormEvictEntity( "Manufacturer" );

Evict Entity by Primary Key

Pass the primary key to remove a single entity cache entry.

record = entityLoadByPK( "Manufacturer", 1 );
ormEvictEntity( "Manufacturer", record.getId() );

Last updated

Was this helpful?