spumko/catbox-mongodb — pull request #5 by Rowno (2014-07-02 10:53:16+00:00)
Title: Create a TTL index so that expired data is deleted

At the moment expired data isn't deleted and builds up in the database. This creates a [TTL index][] on the `stored` field so that Mongo automatically deletes any expired data.

[TTL index]: http://docs.mongodb.org/manual/tutorial/expire-data/