Skip to content

Support for TTL collection via Indexed annotation [DATAMONGO-544] #1477

@spring-projects-issues

Description

@spring-projects-issues

Vineeth Narayanan opened DATAMONGO-544 and commented

Spring 2.2 has introduced a concept of TTL collections. You can create a TTL collection presently using the ensureIndex method of the driver. An example usage is as follows:

myTTLCollection.ensureIndex(new BasicDBObject("someField", 1), new BasicDBObject("expireAfterSeconds", 3600));

It would be great to have support for this functionality via the @Indexed annotation


Referenced from: commits 7823385

12 votes, 12 watchers

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions