TTL for ReactiveMongo

55 views
Skip to first unread message

Yang Wong

unread,
Oct 19, 2017, 10:47:10 AM10/19/17
to ReactiveMongo - http://reactivemongo.org
Does the latest version support time to live indexes?

I have a DateTime field and I'm trying to make the document expire after a certain number of seconds.

I can do this using MongoDB and terminal, but I am unsure of how to do this in ReactiveMongo, and I cannot find any documentation on implementing TTL for ReactiveMongo.

Cédric Chantepie

unread,
Oct 19, 2017, 1:25:59 PM10/19/17
to ReactiveMongo - http://reactivemongo.org
Hi,

As you can see in the documentation, the Index declaration provide an options properties to set additional settings.
Reply all
Reply to author
Forward
0 new messages