←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#
C++/CLI
Java
Python
public virtual bool CheckPolicy( 
   string key, 
   string regionName 
) 
public:  
   virtual bool CheckPolicy( 
      String^ key, 
      String^ regionName 
   ) 
public boolean checkPolicy(String key, String regionName) 
def CheckPolicy(self,key,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 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Caching Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.