How to create a disk persistent cache without configuring the memory required for it in ehcache 3.8 ?
Earlier in ehcache 2.9, we enjoyed the disk persistence facility of a cache without specifying the memory required for it using the only flag (diskPersistent="true"). It was helpful for the cases where we couldn't estimate the memory required for a cache.
How to achieve the same facility in ehcache 3.8 ?
When I tried the following configuration in ehcache 3.8 xml,
<resources>
<heap unit="entries">10</heap>
<disk unit="GB" persistent="true">0</disk>
</resources>
compilation error is shown with the message (Value '0' is not facet-valid with respect to minInclusive '1' for type 'positiveInteger') if the memory is not configured (i.e., when the value is 0 or -1).
Also, the following methods available for creating a disk tier in ResourcePoolsBuilder
* disk(long size, MemoryUnit unit)
* disk(long size, MemoryUnit unit, boolean persistent)
enforces size to be greater than 0.
Please help with the ways for configuring a disk persistent cache without configuring the memory required for it in ehcache 3.8