Adds ttl support.

Fixes #1
Merge pull request #2 from firstandthird/feature/ttl

Adds ttl support.