Class CachingOptions
Provides the user to configure different options that can be set while caching a certain item/result set.
Inheritance
Inherited Members
Assembly: Alachisoft.Integrations.EntityFramework.CachingProvider.dll
Syntax
public class CachingOptions : ICloneable
Constructors
Name | Description |
---|---|
Caching |
Creates an instance of Caching |
Properties
Name | Description |
---|---|
Absolute |
Returns the absolute time when the item will expire. |
Db |
Specifies whether to create a database dependency with the result set or not. |
Expiration |
Returns the configured expiration type. |
Priority | Specifies the priority of the item. Low priority items are evicted first when eviction triggers.
By default the priority is |
Query |
Identifier for a query which is added as a |
Sliding |
Returns the sliding expiration time span of the item that will be cached. |
Store |
Specifies whether the result set should be stored as seperate entities or as a collection. |
Methods
Name | Description |
---|---|
Clone() | Creates a shallow copy of this instance. |
Set |
Sets the absolute expiration time of the caching item. Only one type of expiration, either absoute expiration or sliding expiration, can be configured at one time. |
Set |
Sets the sliding expiration time of the caching item. Only one type of expiration, either absoute expiration or sliding expiration, can be configured at one time. |