Comments (4)
I can confirm, trying this library today, in my first test case .Cachable(TimeSpan.FromMinutes(120)).ToListAsync() and the second run of always hit this exception. What I noticed is if I stepped through it slowly it worked, but if I left my breaks out, I'd hit the above every time, which made it seem to me almost like a race condition was occurring, where cache wasn't populated prior to second run.
from entityframeworkcore.cacheable.
My environment is asp.net core 2.2. I ran your unit test, no problem.But in the ASP.net core environment, inexplicable error.
I tried to track the source code, but when cacheResult returned, I reported that the pointer was abnormal.
It took four or five hours and hopefully it will solve the problem. It is a pity that I have not been able to solve this problem successfully, but I can only mention issue. I hope you can take the time to solve this problem.
Simple query, basically will not get an error. If the group by and then select such an operation is involved, it is easy to get an error.
The driver I use for EFCore is Promelo.EntityFrameworkCore.MySql this library. I don't know if this will have an impact, I'm not familiar with the Expression of Linq. The part that involves CustonQuery, a lot of it can not be read.
I'm in Tim issue through the Bing dictionary, and I hope you can read it.
Thank you
from entityframeworkcore.cacheable.
I wrote a demo that recreated the error.
url: https://share.weiyun.com/5Q84ftF (pass:Y9ST)
I uploaded it to the net disk, and this address and password can be downloaded.
from entityframeworkcore.cacheable.
Same issue. Working only with ToList sync version.
from entityframeworkcore.cacheable.
Related Issues (16)
- Support for async queries HOT 1
- Cache Not "Flushing" and Going Back to Database HOT 1
- Entity state "Detached"
- Question: is FromSql supported HOT 1
- SaveChanges on entity not persisted in Cache
- Comparison with EFSecondLevelCache.Core?
- .NET Core 3.0 and EF Core 3.0.0 support HOT 8
- Always refresh on result NULL HOT 1
- Support EFCore 5.0 ?
- Exchangeable ICacheProvider
- Support .Net Core
- Support MySQL HOT 2
- NPE When Param Value is Null HOT 1
- Global query filters raise a "An item with the same key has already been added" exception HOT 10
- Feature request: SlidingExpiration and TokenExpiration options
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from entityframeworkcore.cacheable.