-
Notifications
You must be signed in to change notification settings - Fork 13
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
DefaultTimeToLiveInMs
specified in milliseconds?
#51
Comments
Microsoft.Extensions.Caching.Cosmos/src/CosmosCache.cs Lines 402 to 403 in d0a1a60
This is a bug, the value is not being correctly changed when it's passed down. Sadly at this point we cannot change the property name because it would be considered a breaking change. The service property is actually in seconds (https://docs.microsoft.com/en-us/azure/cosmos-db/time-to-live#time-to-live-for-containers-and-items), it was a miss that this property's name actually contains the suffix I'll send a PR to fix it. |
@shibayan please confirm if you need a release to cover this gap. |
@ealsur Thanks for the quick response. This change looks good to me. |
@shibayan Created a tracking issue. |
New version with the fix released https://www.nuget.org/packages/Microsoft.Extensions.Caching.Cosmos/1.0.1 |
Describe the bug
I thought the value to be specified for
DefaultTimeToLiveInMs
was in milliseconds from the property name, but it seems that it actually needs to be specified in seconds.It would be easier to understand if the units could be clarified in the document comments.
The text was updated successfully, but these errors were encountered: