An element has expired if the current time is greater than the ttl

If the current time is greater than the time to live date, the element
has expired from the cache, not if its less than or equal.
Need to set the time to live

This was never being set and so was always 0 ie no expiration.
Merge branch 'fix_time_to_live'

Enable the time to live feature.