google-code-export / morphia

Automatically exported from code.google.com/p/morphia
1 stars 0 forks source link

Add support for TTL-Index setting expireAfterSeconds #436

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What version are you using? (Morphia/Driver/MongoDB)
0.99-snapshot nov 2011

MongoDB 2.2 supports time-to-live setting for documents in collections:
http://docs.mongodb.org/manual/tutorial/expire-data/

The Index and Indexed annotations need a expireAfterSeconds field, which works 
the same as unique, dropDups, etc.

Original issue reported on code.google.com by ku...@re-media.eu on 18 Oct 2012 at 8:47

GoogleCodeExporter commented 9 years ago
Has it been done? If not, what's the ETA for this?

Original comment by saurabha...@gmail.com on 18 Feb 2013 at 12:24

GoogleCodeExporter commented 9 years ago
Added in 0.102 version: https://github.com/mongodb/morphia/wiki/ReleaseNotes

Original comment by Zivil...@gmail.com on 11 Sep 2013 at 1:01