-
Notifications
You must be signed in to change notification settings - Fork 341
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removing expired sessions after migrating to V4. #388
Comments
V4
.
You are correct. I have removed the |
@mingchuno thank you for your response. I wanted to confirm that's still the case, and it appears to be, but the problem I am running into is because I am using
I used In case if needed, following migration steps for
Thanks for all the help so far! |
@mingchuno works beautifully, thank you! Would you take a PR that updates the more options section and puts back the Thanks again! |
@goto1 Ya I missed that. Let me add it back |
@mingchuno thank you for your prompt responses, much appreciated! Have a good rest of the week. |
I'm submitting a ...
[x] question about how to use this project
Summary
Hello, thank you for this great package.
I have a question related to changes in
V4
for theautoRemove
andautoRemoveInterval
feature.In
V3
I was able to useautoRemove: interval
&autoRemoveInterval: 20
, which sounds like a different behavior than what I would get withautoRemove: native
that creates aTTL
index at startup usingMongoDB's
TTL collection feature.In
V4
, it looks like I can disable theMongoDB's
TTL collection feature by settingcreateAutoRemoveIdx: false
, but it doesn't look like it's going to remove expired sessions similarly to what was available inV3
- does this mean that expired sessions will have to be removed manually now?The issue I am running into is that I am using
Azure Cosmos DB
, which works a little differently than a "native"MongoDB
instance so I am unable to use theTTL
collection feature.Any tips or clarifications would be greatly appreciated.
Thanks!
The text was updated successfully, but these errors were encountered: