←Select platform

Set(CacheItem,CacheItemPolicy) Method

Summary

Adds an item into the cache.

Syntax
C#
VB
C++
public virtual void Set( 
   CacheItem item, 
   CacheItemPolicy policy 
) 
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 20.0.2020.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Caching Assembly