Announcement Announcement Module
Collapse
No announcement yet.
Setting TTL for RedisCache Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Setting TTL for RedisCache

    It seems that using the Spring Data Redis support for Spring's Cache Abstraction means that you can't set TTLs. Are there any plans for this (JIRA)? I checked quickly but didn't see anything.

  • #2
    Actually RedisCacheManager has a default TTL that one can set. For fine grained TTL, one could plug in their own strategies or set the TTL manually for each key...

    Comment


    • #3
      Which version of spring-data-redis is that in? I didn't see it in 1.0.1.RELEASE, which I thought was the latest but now see 1.0.2.RELEASE. We ended up re-implementing the RedisCacheManager to allow a default and custom ones.

      Comment


      • #4
        See http://static.springsource.org/sprin...s/current/api/

        Comment

        Working...
        X