mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Update README.md
This commit is contained in:
committed by
GitHub
parent
991d8a6e6f
commit
e2fe15f09f
@@ -32,6 +32,7 @@ Run
|
|||||||
```
|
```
|
||||||
db.chat_logs.createIndex({ "createdAt": 1 }, { expireAfterSeconds: X });
|
db.chat_logs.createIndex({ "createdAt": 1 }, { expireAfterSeconds: X });
|
||||||
db.timeout_api.createIndex({ "createdAt": 1 }, { expireAfterSeconds: Y });
|
db.timeout_api.createIndex({ "createdAt": 1 }, { expireAfterSeconds: Y });
|
||||||
|
db.api_links.createIndex({ "createdAt": 1 }, { expireAfterSeconds: 86400 });
|
||||||
```
|
```
|
||||||
in mongo to have chat_logs and api be deleted after X and Y seconds.
|
in mongo to have chat_logs and api be deleted after X and Y seconds.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user