Adds ttl support.

Fixes #1
should the callback be inside the ensure index?  or does the indexing happen in background?