Skip to content

Support for Local Cache Eviction Policy #3983

@atharva29

Description

@atharva29

Expected behavior

Please add support of TTL, Max Idle , Eviction Policy support to redis server assisted client side caching.
This will reduce the memory requirement on Application's side.

https://github.com/redisson/redisson-examples/blob/master/collections-examples/src/main/java/org/redisson/example/collections/LocalCachedMapExamples.java#L46

        .maxIdle(Duration.ofSeconds(60))
        .timeToLive(Duration.ofSeconds(60))
        .evictionPolicy(EvictionPolicy.LFU)
        .syncStrategy(SyncStrategy.UPDATE)

Write here what you're expecting ...

Actual behavior

Write here what happens instead ...

Steps to reproduce:

Please create a reproducible case of your problem. Make sure
that case repeats consistently and it's not random
1.
2.
3.

Redis / Jedis Configuration

Jedis version:

version as per current date: 5.2.0 GA

Redis version:

Java version:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions