←Select platform

CheckPolicy Method

Summary

Checks the policy of an existing cache item or items in a region and purge it if it has expired.

Syntax
C#
VB
Java
C++
public virtual bool CheckPolicy( 
   string key, 
   string regionName 
) 
Public Overridable Function CheckPolicy( 
   ByVal key As String, 
   ByVal regionName As String 
) As Boolean 
public:  
   virtual bool CheckPolicy( 
      String^ key, 
      String^ regionName 
   ) 
public boolean checkPolicy(String key, String regionName) 

Parameters

key

Unique item identifier. If this value is null then all the items that belong to regionName

will be checked.

regionName

Optional region (sub-directory) name. If this value is null then all the items in the cache

will be checked.

Return Value

true if the item has not yet expired, false otherwise.

Remarks

This method checks the policy of the item if found. It its absolute or sliding expiration date is met, then it will be purged from the cache.

Requirements

Target Platforms

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

Leadtools.Caching Assembly