Checks the policy of an existing cache item or items in a region and purge it if it has expired.
public virtual bool CheckPolicy(
string key,
string regionName
)
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.
true if the item has not yet expired, false otherwise.
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.