Click or drag to resize

LruDisposableValueCacheTKey, TValue Class

An implementation of DisposableValueCacheTKey, TValue which stores a fixed number of entries. After this capacity has been reached, the Least Recently Used (LRU) entry will be removed before new ones are added.
Inheritance Hierarchy
SystemObject
  Atalasoft.Imaging.Codec.Office.CachingDisposableValueCacheTKey, TValue
    Atalasoft.Imaging.Codec.Office.CachingLruDisposableValueCacheTKey, TValue

Namespace:  Atalasoft.Imaging.Codec.Office.Caching
Assembly:  Atalasoft.dotImage.Office (in Atalasoft.dotImage.Office.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public class LruDisposableValueCache<TKey, TValue> : DisposableValueCache<TKey, TValue>
where TValue : IDisposable

Type Parameters

TKey
The type to use as a key to access values in the cache.
TValue
The type to use as a value to store in the cache.

The LruDisposableValueCacheTKey, TValue type exposes the following members.

Constructors
  NameDescription
Public methodLruDisposableValueCacheTKey, TValue
Initializes a new instance of LruDisposableValueCacheTKey, TValue.
Top
Properties
Methods
  NameDescription
Public methodAdd
Adds an entry to the cache.
(Overrides DisposableValueCacheTKey, TValueAdd(TKey, TValue).)
Public methodClear
Clears all entries from this cache.
(Inherited from DisposableValueCacheTKey, TValue.)
Public methodContains
Gets a value indicating if this cache contains an entry for the given key.
(Inherited from DisposableValueCacheTKey, TValue.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize (Inherited from DisposableValueCacheTKey, TValue.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetValue
Gets the value associated with the given key.
(Overrides DisposableValueCacheTKey, TValueGetValue(TKey).)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemove
Removes an entry for a given key from this cache.
(Overrides DisposableValueCacheTKey, TValueRemove(TKey).)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also