Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.4.7
|
Leadtools.Caching Assembly > Leadtools.Caching Namespace > ObjectCache Class > Set Method : Set(CacheItem,CacheItemPolicy) Method |
public abstract void Set( CacheItem item, CacheItemPolicy policy )
'Declaration
Public Overloads MustOverride Sub Set( _ ByVal item As CacheItem, _ ByVal policy As CacheItemPolicy _ )
'Usage
Dim instance As ObjectCache Dim item As CacheItem Dim policy As CacheItemPolicy instance.Set(item, policy)
public: abstract void Set( CacheItem^ item, CacheItemPolicy^ policy )
If the item is already in the cache, then it will be replaced with the new item and its policy updated.