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

MemoryCacheLevel Fields

The fields of the MemoryCacheLevel class are listed below. For a complete list of MemoryCacheLevel class members, see the MemoryCacheLevel Members topic.

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.

See Also

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