Skip to content
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

Microsoft.Extensions.Caching.Hybrid -> 9.0.0-preview.5.24306.11 issue - Expiration and LocalCacheExpiration no longer default options after entityframework upgrade #5681

Open
1 task done
kfaizullabhoyjjsnack opened this issue Nov 20, 2024 · 2 comments

Comments

@kfaizullabhoyjjsnack
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

builder.Services.AddHybridCache(options =>
{
options.MaximumPayloadBytes = 1024 * 1024;
options.MaximumKeyLength = 1024;
options.DefaultEntryOptions = new HybridCacheOptions
{
Expiration = TimeSpan.FromMinutes(60),
LocalCacheExpiration = TimeSpan.FromMinutes(60)
};
});

Severity Code Description Project File Line Suppression State
Error (active) CS0117 'HybridCacheOptions' does not contain a definition for 'Expiration' EmailAPI C:\Users\kfaizullabhoy\source\repos\EmailAPIs\EmailAPI\Program.cs 31
Error (active) CS0117 'HybridCacheOptions' does not contain a definition for 'LocalCacheExpiration' EmailAPI C:\Users\kfaizullabhoy\source\repos\EmailAPIs\EmailAPI\Program.cs 32

Expected Behavior

no errors

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

No response

Anything else?

No response

@martincostello
Copy link
Member

Do you still have issues using the latest preview version? Preview 5 is quite old now: 9.0.0-preview.9.24556.5

@BrennanConroy BrennanConroy transferred this issue from dotnet/aspnetcore Nov 20, 2024
@kfaizullabhoyjjsnack
Copy link
Author

yes that fixed it - thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants