adding ttl for documents
Merge pull request #453 from pentarim/master

adding ttl for documents