←Select platform

Set(CacheItem,CacheItemPolicy) Method

Summary

Adds an item into the cache.

Syntax
C#
C++/CLI
Python
public virtual void Set( 
   CacheItem item, 
   CacheItemPolicy policy 
) 
public:  
   virtual void Set( 
      CacheItem^ item, 
      CacheItemPolicy^ policy 
   ) 
def Set(self,item,policy): 

Parameters

item

Cache item to add.

policy

Item expiration policy.

Remarks

If the item is already in the cache, then it will be replaced with the new item and its policy updated.

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.