Skip to main content
Version: 4.2.5

FilterQueryCacheOptions Class

Namespace: iCore.Public.Entities
Assembly: iCore.Public.Entities.dll

Defines how a IFilterQueryDefinition<TQuery> and its returned results are cached.

public sealed class FilterQueryCacheOptions

Inheritance object 🡒 FilterQueryCacheOptions

Constructors​

NameDescription
FilterQueryCacheOptions()Default constructor.
FilterQueryCacheOptions(bool, System.Nullable<System.TimeSpan>, System.Nullable<System.TimeSpan>, iCore.Public.Entities.FilterQueryResultCachingOptions?, iCore.Public.Entities.FilterQueryResultCachingOptions?)Constructor.

Properties​

NameDescription
QueryCacheEnabledGets or sets a value indicating whether caching of queries between calls to the CreateQuery(iCore.Public.Entities.FilterQueryOptions) method.
QueryCacheSlidingExpirationGets or sets a value that indicates whether a cached query should be evicted if it has not been accessed in a given span of time. Only applicable if QueryCacheEnabled is set to true.
QueryCacheAbsoluteExpirationGets or sets a value that indicates whether a cached query should be evicted from the cache a specific time after it was first cached.
KeyCacheOptionsGets options controlling caching of the IEntityKeys retrieved during a query.
RowCacheOptionsGets options controlling caching of the rows retrieved during a query.

Methods​

NameDescription
SetCacheDirectory(string)Convenience method to set the cache directory of both KeyCacheOptions and RowCacheOptions at the same time.