←Select platform

SlidingExpiration Property

Summary

The window of time during which a cache entry must be touched else it is deleted from the cache.

Syntax
C#
VB
C++
public TimeSpan SlidingExpiration { get; set; } 
Public Property SlidingExpiration() As TimeSpan 
   Get 
   Set 
public:  
   property TimeSpan^ SlidingExpiration 
   { 
      TimeSpan^ get() 
      void set(TimeSpan^ value) 
   } 

Property Value

The window of time during which a cache entry must be touched else it is deleted from the cache. The default value is 60 seconds.

Remarks

Cache entries are touched when the corresponding document is loaded from the cache. Each load operation will add another SlidingExpiration amount of time to the document.

Refer to DocumentMemoryCache for more information.

Example

For an example, refer to DocumentMemoryCache.

Requirements

Target Platforms

Help Version 20.0.2020.4.3
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document Assembly