LRUCache Class (PIA)
Use this object to support the creation, storage, and retrieval of name/value pairs, referred to as elements, from a cache in memory. The LRUCache object functions similarly to the Dictionary object, except that it only stores a limited number of elements, and internally ranks them according to use. When the cache is full and a new element needs to be added, the least recently used element is removed from the cache to make room for the new element.
Methods
Method | Description |
---|---|
Flush | Removes an element from the cache. |
FlushAll | Removes all elements from the cache. |
Insert | Inserts an element into the cache. |
Lookup | Returns the value of an element in the cache when given the name of the element. |
LookupObject | Returns an object in the cache when given the name of the object. |
SetSize | Sets the maximum size of the cache. |
Requirements
Namespace: Microsoft.CommerceServer.Interop.Caching
Platforms: Windows 2000, Windows Server 2003
Assembly: cachecomplib (in cachecomplib.dll)
Copyright © 2005 Microsoft Corporation.
All rights reserved.