0

Does any of the java redis clients support the above primitives in their api for TTL? I am using redisson currently. This is supported by the in-memory cache lib like caffeine.

1 Answers1

0

You can define ttl parameter with RMapCache object duing put method invocation which will be analog of expireAfterWrite method and definition of idleTimeout parameter will be analog of expireAfterAccess method.

Nikita Koksharov
  • 10,283
  • 1
  • 62
  • 71