Results 1 to 4 of 4

Thread: Setting TTL for RedisCache

  1. #1

    Default 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. #2
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    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...
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

  3. #3

    Default

    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.

  4. #4
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •