Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Implemented
-
1.10.0
Description
Current implementation of getting unexpired value would always check whether this ttl value is expired first:
// code placeholder <V> V getUnexpired(TtlValue<V> ttlValue) { return ttlValue == null || (expired(ttlValue) && !returnExpired) ? null : ttlValue.getUserValue(); }
However, this check could be avoided if we set return expired time, we could improve the performance by check whether to returnExpired first.
Attachments
Issue Links
- links to