Class CachingOptions
Provides the user to configure different options that can be set while caching a certain item/result set.
Inheritance
Namespace:
Assembly: Alachisoft.NCache.EntityFrameworkCore.dll
Syntax
public class CachingOptions : ICloneable
Constructors
Name | Description |
---|---|
CachingOptions() | Creates an instance of CachingOptions with default values. |
Properties
Name | Description |
---|---|
AbsoluteExpirationTime | Returns the absolute time when the item will expire. |
CreateDbDependency | Specifies whether to create a database dependency with the result set or not. |
ExpirationType | 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 |
QueryIdentifier | Identifier for a query which is added as a |
SlidingExpirationTime | Returns the sliding expiration time span of the item that will be cached. |
StoreAs | 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. |
SetAbsoluteExpiration(DateTime) | 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. |
SetSlidingExpiration(TimeSpan) | 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. |