increase redis cache ttl

This commit is contained in:
Athou
2013-07-02 10:48:54 +02:00
parent b77077828e
commit 3e0da188cb

View File

@@ -48,7 +48,7 @@ public class RedisCacheService extends CacheService {
for (String entry : entries) {
pipe.sadd(key, entry);
}
pipe.expire(key, (int) TimeUnit.HOURS.toSeconds(24));
pipe.expire(key, (int) TimeUnit.DAYS.toSeconds(7));
pipe.sync();
} finally {
pool.returnResource(jedis);