TechTalk Genome v4.2

PredictiveCacheManager.Precache Method 

Directs the predictive cache to preload a projection of a Set along with other elements of the Set.

public static Set Precache(
   Set s,
   string projection,
   params object[] parameters
);

Parameters

s
The source Set.
projection
An OQL expression that is evaluated for each element of s. The expression may contain zero or more literal parameter references and it can refer to the candidate element of the source Set using the this keyword. The expression must return a scalar or persistent object.
parameters
An array of zero or more objects that can be used as literal argument values in orderBy.

Return Value

A Set containing the same elements as s. The resulting Set will contain a hint that instructs the predictive cache framework to retrieve [projection]s from the DataDomain whenever the resulting Set is enumerated.

Remarks

Requirements

Namespace: TechTalk.Genome

Assembly: TechTalk.Genome (in TechTalk.Genome.dll)

Version: 4.2.4.4

Editions: Professional, Evaluation, Express

See Also

PredictiveCacheManager Class | TechTalk.Genome Namespace