Need to set the time to live

This was never being set and so was always 0 ie no expiration.
Merge pull request #2 from Tylerc230/fix_time_to_live

Need to set the time to live