Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.7.1 (Hopper SR1), 1.7.2 (Hopper SR2), 1.6.6 (Gosling SR6)
-
Fix Version/s: 1.8 RC1 (Ingalls), 1.6.7 (Gosling SR7), 1.7.5 (Hopper SR5)
-
Component/s: Infrastructure
-
Labels:None
-
Pull Request URL:
-
Sprint:Ingalls M1, Hopper SR3 / Gosling SR5, Kay M1
Description
RedisCache.putIfAbsent does not set the TTL on the element in redis. This appears to be because the RedisCachePutIfAbsentCallback performs the wrong check to decide whether it should set the TTL.
Looks like it should check for null being returned from the set rather than checking equality with the supplied value.