Class CacheItemAttributes
The CacheItemAttributes contains the information about the cache attributes.
Inheritance
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
public class CacheItemAttributes
Properties
AbsoluteExpiration
Gets/Sets the absolute expiration. You can add an item to the cache with the absolute expiration by specifying the exact date and time at which the item should be invalidated. When this time is elapsed, the item will be removed from the cache.
Declaration
public DateTime AbsoluteExpiration { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime | The exact date and time at which the item should be invalidated. |
Dependency
The dependency/dependencies for the item. If there are no dependencies, it contains a null reference.
Declaration
public CacheDependency Dependency { get; set; }
Property Value
Type | Description |
---|---|
CacheDependency | Dependency/Dependencies for the cache item. |
ResyncRequired
Gets/Sets the flag which indicates whether an item should be reloaded on expiration if the Read-Through provider is specified.
Declaration
public bool ResyncRequired { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Flag that indicates wether an item should be reloaded on expiration if the Read-Through provider is specified. |