Announcement Announcement Module
Collapse
No announcement yet.
spring data redis RC1 - bug in RedisCacheManager ? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • spring data redis RC1 - bug in RedisCacheManager ?

    Hi,

    Just started playing around with spring data redis and the spring cache abstraction using RedisCacheManager as cache manager.

    there is an unmodifiable set
    private final Collection<String> names = Collections.unmodifiableSet(caches.keySet());

    Debugging the code i was wondering how line 54 could ever work, since adding something to an unmodifiable collection throws an exception:

    public Cache getCache(String name) {
    Cache c = caches.get(name);
    if (c == null) {
    c = new RedisCache(name, (usePrefix ? cachePrefix.prefix(name) : null), template);
    caches.put(name, c);
    names.add(name);
    }

    return c;
    }

    Any help appreciated.
    Regards,
    Dirk
Working...
X