
Use the same Duration type throughout the stack. In particular, this allows us to use the java.time API for doing expiry calculations in H2CacheImpl. Converting to Optional<Duration> is beyond the scope of this change, as it would properly imply changing the other nullable fields in CacheDef. Change-Id: I63a173ce1bef83fa84ccb8b8b6ea75ae198e5728