Added Duration support to Java Cache interface