Skip to content

Size based eviction policy #422

Open
@pizzi80

Description

@pizzi80

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions