-
Notifications
You must be signed in to change notification settings - Fork 0
feat: MongoDB store #9
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requesthelp wantedCommunity contributions welcomeCommunity contributions welcomeroadmapPlanned featurePlanned feature
Milestone
Description
Activity
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedCommunity contributions welcomeCommunity contributions welcomeroadmapPlanned featurePlanned feature
feat: MongoDB store
Labels:
enhancement,roadmap,help wantedSummary
Add a MongoDB storage adapter for environments that already use MongoDB and don't want to add Redis.
Proposed API
Implementation notes
findOneAndUpdatewithupsert: truefor atomic operationsmongodb >= 5Schema
TTL index:
{ expiresAt: 1 }, { expireAfterSeconds: 0 }Acceptance criteria
mongoStore()factory functionmongodb >= 5findOneAndUpdateping()health checkkeys(prefix)supportensureIndexesoptiondocs/stores.md@tzezar/throtto/stores/mongo