Open
Description
How to define a Size based eviction policy?
I would expect something like:
new MutableConfiguration<>().setExpiryPolicyFactory(SizedExpiryPolicy.factoryOf( 12345 ))
or even better add the maxElements attribute, in this way it would be possible
to cover the typical size and time cache policy
new MutableConfiguration<>()
.setMaxElements( 12345 )
.setExpiryPolicyFactory(CreatedExpiryPolicy.factoryOf( new Duration(TimeUnit.DAYS,1) ))
Metadata
Metadata
Assignees
Labels
No labels