Open pizzi80 opened 1 year ago
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) ))
How to define a Size based eviction policy?
I would expect something like:
or even better add the maxElements attribute, in this way it would be possible to cover the typical size and time cache policy