Update README.md

pull/2/head
Louis Chatriot 9 years ago
parent 8d376c7e71
commit dd9dcbe44b
  1. 3
      README.md

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

Loading…
Cancel
Save