-
Notifications
You must be signed in to change notification settings - Fork 135
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
standard key expiration for all supported drivers #262
Comments
I will implement this for the Azure Key Vault and the CosmosDB driver, but Azure Storage Table/Blob and Azure App Config are definitely unsupported natively. I would also consider mongoDb as unsupported, as creating ttl indexes has a lot of implications and edge cases to be considered. |
I agree with you, I listed both mongodb and r2 under possible but not straighforward, but maybe my wording is not strong enough, I'll rename this to partial support. In both cases it would be pretty hacky or as you said a custom deletion mechanism. |
At this point i think there is really no point of having such tracker. There is no new shared feature to implement other than adding types for
I will make sure of that before merging any PRs if they used another key :) |
Describe the feature
Implement a
ttl
top level option for setting a ttl in seconds at the object level for all drivers.Additional information
For unsupported / partial support drivers, a manual expiration can be implemented by attaching custom unstorage metadata to the storage itself.
Unsupported drivers
setTimeout
)Partial support drivers
TTL driver native support
upstash-redis
driver #289The text was updated successfully, but these errors were encountered: