Defines the expiration details of a cache entry.
public class CacheItemPolicy
Public Class CacheItemPolicy
public ref class CacheItemPolicy
public class CacheItemPolicy
The CacheItemPolicy instance contains the expiration details of a cache entry. When the cache object retrieves a cache entry, the policy is checked and if the expiration details is met, the entry is deleted from the cache.
The default constructor of CacheItemPolicy creates a policy that does not expire (maximum value).
CacheItemPolicy supports two types of expiration:
Absolute: The entry will expire at a specific time. To use this set AbsoluteExpiration to the desired date and time and leave SlidingExpiration to the default value of NoSlidingExpiration.
Sliding: The entry will expire if it has not been accessed after for a specific time. To use this set SlidingExpiration to the desired time span value and leave AbsoluteExpiration to the default value of InfiniteAbsoluteExpiration.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.