Cache following a "Most Recently Used" (MRU) algorithm for maintaining a
bounded in-memory size; the "Least Recently Used" (LRU) entry is the first
available for removal from the cache.
Namespace: NHibernate.UtilAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
[SerializableAttribute] public class SimpleMRUCache : IDeserializationCallback |
Visual Basic |
---|
<SerializableAttribute> _ Public Class SimpleMRUCache _ Implements IDeserializationCallback |
Visual C++ |
---|
[SerializableAttribute] public ref class SimpleMRUCache : IDeserializationCallback |
Remarks
This implementation uses a bounded MRU Map to limit the in-memory size of
the cache. Thus the size of this cache never grows beyond the stated size.