Update README.md

pull/2/head
Louis Chatriot 9 years ago
parent dd9dcbe44b
commit 9778865e4f
  1. 2
      README.md

@ -590,7 +590,7 @@ db.removeIndex('somefield', function (err) {
}); });
// Example of using expireAfterSeconds to remove documents 1 hour // Example of using expireAfterSeconds to remove documents 1 hour
// after their creation (timestampData option is true here) // after their creation (db's timestampData option is true here)
db.ensureIndex({ fieldName: 'createdAt', expireAfterSeconds: 3600 }, function (err) { db.ensureIndex({ fieldName: 'createdAt', expireAfterSeconds: 3600 }, function (err) {
}); });
``` ```

Loading…
Cancel
Save