Added a getter to access durations from Extensions and used this when reading the ttl of a cache