Support for limiting cache size.