←Select platform

Set(CacheItem,CacheItemPolicy) Method

Summary

Adds an item into the cache.

Syntax
C#
C++
public virtual void Set( 
   CacheItem item, 
   CacheItemPolicy policy 
) 
vb[VB Syntax] 
Public Overridable Sub [Set]( 
   ByVal _item_ As CacheItem, 
   ByVal _policy_ As CacheItemPolicy 
) 
public:  
   virtual void Set( 
      CacheItem^ item, 
      CacheItemPolicy^ 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 22.0.2022.4.6
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2022 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Caching Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2022 LEAD Technologies, Inc. All Rights Reserved.