←Select platform

GetPolicy Method

Summary

Gets the policy stored with the specified cache item.

Syntax
C#
C++/CLI
Python
public override CacheItemPolicy GetPolicy( 
   string key, 
   string regionName 
) 
public:  
   virtual CacheItemPolicy^ GetPolicy( 
      String^ key, 
      String^ regionName 
   ) override 
def GetPolicy(self,key,regionName): 

Parameters

key

Unique identifier of the cache item.

regionName

Optional name of a region in cache.

Return Value

The cache item policy stored for the specified item in the cache. If the value is not found, a new CacheItemPolicy object initialized with default values is returned.

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.