RepositoryReadOnlyTRemoveFromCache Method

Removes the entity with the specified id from the top-level entity cache if caching is enabled

Definition

Namespace: Ignition.Framework.Repositories
Assembly: CatalystFire.Ignition (in CatalystFire.Ignition.dll) Version: 12.0.3454
C#
protected void RemoveFromCache(
	NetForumId id
)

Parameters

id  NetForumId
Id of the entity to remove from the cache

Remarks

This method should be used by a repository that needs to invalidate a single cache entry without clearing the entire cache, typically because that repository has taken some action that it knows will invalidate a given entity in cache, such as saving or deleting that entity.

See Also