←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 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Caching Assembly