ICacheEntry.SlidingExpiration 属性
定义
获取或设置缓存项在被删除之前可以处于停用状态(例如不被访问)的时长。Gets or sets how long a cache entry can be inactive (e.g. not accessed) before it will be removed. 这不会将项生存期延长到超过绝对到期时间(如果已设置)。This will not extend the entry lifetime beyond the absolute expiration (if set).
public:
property Nullable<TimeSpan> SlidingExpiration { Nullable<TimeSpan> get(); void set(Nullable<TimeSpan> value); };
public TimeSpan? SlidingExpiration { get; set; }
member this.SlidingExpiration : Nullable<TimeSpan> with get, set
Public Property SlidingExpiration As Nullable(Of TimeSpan)