Need to set the time to live

This was never being set and so was always 0 ie no expiration.