The time at which the added object expires
and is removed from the cache.
Namespace: Alachisoft.NCache.Web.CachingAssembly: Alachisoft.NCache.Web (in Alachisoft.NCache.Web.dll) Version: 4.1.0.0 (4.1.0.0)
Syntax
C# |
---|
public DateTime AbsoluteExpiration { get; set; } |
Visual Basic |
---|
Public Property AbsoluteExpiration As DateTime Get Set |
Visual C++ |
---|
public: property DateTime AbsoluteExpiration { DateTime get (); void set (DateTime value); } |
Field Value
The default value is Cache.NoAbsoluteExpirationRemarks
You cannot set both sliding and absolute expirations on the same cached item.
If you do so, an ArgumentException is thrown when you will try to
add or insert the CacheItem.