If near cache is enabled, users should define the maximum number of elements to store in it. This is important to avoid clients running out of memory as a result of using near caching. In the current set up, when someone enables near caching, the local cache is unbounded. The best approach is to force clients to define a maximum number of elements if enabling near caching. 0 would be unlimited.