#980 Added ability to use Scala Durations as cache expiration periods