For a partitioned cache, use the attached cache extension which measures its units in bytes. Configure the high-units to be in bytes, as shown below. Be sure to specify the class of the cache extension, too.
Since the MemoryLimitedCache implementation only supports Binary values, it can be easily used as the backing map for a partitioned cache – but not as an object cache (e.g. within the front side of a Near Cache):
There is a <unit-calculator> element in the <local scheme> element. Adding <unit-calculator>BINARY</unit-calculator> will cause the low-units/high-units elements to control maximum byte count rather than object count.