RepositoryReadOnlyTPrimeCache Method

Retrieves and caches the set of all known entities managed by this repository, in order to increase the performance of future GetAll(GetAllOptions) and GetById(NetForumId) requests. Performance of Find(ExpressionFuncT, Boolean, GetAllOptions) requests will not be improved.

Definition

Namespace: Ignition.Framework.Repositories
Assembly: CatalystFire.Ignition (in CatalystFire.Ignition.dll) Version: 12.0.3454
C#
public void PrimeCache()

Remarks

All previously cached entities will be removed. This includes including any entities cached as a results of Find(ExpressionFuncT, Boolean, GetAllOptions) requests. This means that, as far as future Find(ExpressionFuncT, Boolean, GetAllOptions) requests are concerned, this operation is the equivalent to ClearCache. This method retrieves the entities to cache synchronously, which gives the potential for very long execution times if the amount of data being retrieved is great. This method will not pre-populate any auxiliary caches nor the ValueTypeProvider cache.

See Also