add ttl option for writes
Merge pull request #2 from koeninger/ttl

add ttl option for writes