FilterQueryCacheOptions Class
Namespace: iCore.Public.Entities
Assembly: iCore.Public.Entities.dll
Defines how a IFilterQueryDefinition<TQuery> and its returned results are cached.
- C#
- VB
public sealed class FilterQueryCacheOptions
Public NotInheritable Class FilterQueryCacheOptions
Inheritance object 🡒 FilterQueryCacheOptions
Constructors​
Properties​
Name | Description |
---|---|
QueryCacheEnabled | Gets or sets a value indicating whether caching of queries between calls to the CreateQuery(iCore.Public.Entities.FilterQueryOptions) method. |
QueryCacheSlidingExpiration | Gets 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. |
QueryCacheAbsoluteExpiration | Gets or sets a value that indicates whether a cached query should be evicted from the cache a specific time after it was first cached. |
KeyCacheOptions | Gets options controlling caching of the IEntityKeys retrieved during a query. |
RowCacheOptions | Gets options controlling caching of the rows retrieved during a query. |
Methods​
Name | Description |
---|---|
SetCacheDirectory(string) | Convenience method to set the cache directory of both KeyCacheOptions and RowCacheOptions at the same time. |