I\'m using .net 4 Memory Cache. I would like to limit the size of the cache say to 10mb because I don\'t want my application to be abusing what goes in there.
It seems at this time the maximum amount of memory allocated for the cache can not be enforced. See this post for further reference: MemoryCache does not obey memory limits in configuration