Cache following a "Most Recently Used" (MRY) 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 SoftLimitMRUCache : IDeserializationCallback |
Visual Basic |
---|
<SerializableAttribute> _ Public Class SoftLimitMRUCache _ Implements IDeserializationCallback |
Visual C++ |
---|
[SerializableAttribute] public ref class SoftLimitMRUCache : IDeserializationCallback |
Remarks
This implementation uses a "soft limit" to the in-memory size of the cache,
meaning that all cache entries are kept within a completely
{@link java.lang.ref.SoftReference}-based map with the most recently utilized
entries additionally kept in a hard-reference manner to prevent those cache
entries soft references from becoming enqueued by the garbage collector.
Thus the actual size of this cache impl can actually grow beyond the stated
max size bound as long as GC is not actively seeking soft references for
enqueuement.