cache block - limit by memory size

Topics: Caching Application Block
Dec 12, 2012 at 8:13 PM


i know that in the cache block i can configure only by number of items and in the new cache class on .net 4 i can configure max memory usage size.

is there some option to get the current size of the cache in order to limit it?



Dec 14, 2012 at 4:27 AM

There is no out of the box cache size setting.  If you need a memory cache then I would just use the new (.NET 4) caching functionality (or AppFabric for more complex distributed scenarios).

Randy Levy
Enterprise Library support engineer
Support How-to