• Webinars
  • Docs
  • Download
  • Blogs
  • Contact Us
Try Free
Show / Hide Table of Contents

Method SetSlidingExpiration

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.

Declaration
public void SetSlidingExpiration(TimeSpan timespan)
Parameters
Type Name Description
System.TimeSpan timespan

The time span in which if the item is not accessed it will be expired from the cache.

Back to top Copyright © 2017 Alachisoft