iBATIS.NET Class Library DataMapper V1.6.1, DataAccess V1.9.1

MemoryCacheLevel Members

MemoryCacheLevel overview

Public Static (Shared) Fields

Strong Constant for strong caching. This cache model will guarantee that the results stay in memory until the cache is explicitly flushed. This is ideal for results that are: very small absolutely static used very often The advantage is that performance will be very good for this particular query. The disadvantage is that if the memory used by these results is needed, then it will not be released to make room for other objects (possibly more important objects).
Weak Constant for weak caching This cache model is probably the best choice in most cases. It will increase performance for popular results, but it will absolutely release the memory to be used in allocating other objects, assuming that the results are not currently in use. References an object while still allowing it to be garbage collected.

Public Static (Shared) Methods

GetByRefenceType

Public Instance Properties

ReferenceType

Public Instance Methods

Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

MemoryCacheLevel Class | IBatisNet.DataMapper.Configuration.Cache.Memory Namespace