←Select platform

UpdatePolicy Method

Summary

Update the policy of an existing cache item.

Syntax
C#
VB
C++
Java
public abstract void UpdatePolicy( 
   string key, 
   CacheItemPolicy policy, 
   string regionName 
) 
Public MustOverride Sub UpdatePolicy( 
   ByVal key As String, 
   ByVal policy As CacheItemPolicy, 
   ByVal regionName As String 
) 
public:  
   virtual void UpdatePolicy( 
      String^ key, 
      CacheItemPolicy^ policy, 
      String^ regionName 
   ) abstract 
public void updatePolicy(String key, CacheItemPolicy policy, String regionName) 

Parameters

key

Unique item identifier.

policy

New expiration policy to use with this item.

regionName

Optional region (sub-directory) name.

Remarks

This method is useful for cache implementation supporting individual item policies. The consumer call this method to update just the policy of an existing item. If the cache implementation uses global policies then it can safely implement an empty version of this method.

Requirements
Target Platforms
Help Version 21.0.2021.6.30
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

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