memory should refer size of cache and not count of no. of objects in cache