Comments (2)
- When you are using the
CacheAllQueries()
, you don't need to useCacheable()
method at all. You can write your normal queries as before and you don't need to pollute your code base with anything else. - As it's mentioned in the read-me file, don't forget to add the interceptor to the EF-Core's pipeline.
.AddInterceptors(serviceProvider.GetRequiredService<SecondLevelCacheInterceptor>()));
from efcoresecondlevelcacheinterceptor.
Thanks for swift reply. Great job on the code, love it.
On point 1:At first I didn't add to the query (yes it pollute), but I didn't see the SQL query prefix when using CacheAllQueries. The prefix only shows when using the "pollution".
On point 2: DOOOH... 😂
from efcoresecondlevelcacheinterceptor.
Related Issues (20)
- Is there a way to set how many times the app will try and reach the Redis cache? HOT 2
- Make select methods virtual to ease extension of these HOT 1
- Prefix not applied to all generated keys. HOT 1
- Question: Is there plans to support async redis api calls? Using redis sync calls results in thread pool exhaustion and redis timeout issues HOT 1
- Code releases are not tagged HOT 1
- Crash when calling `context.Database.EnsureCreatedAsync()` HOT 1
- There my be a bug? HOT 2
- PostgreSQL hint "FOR UPDATE" causes an IndexOutOfRangeException
- Too much memory is wasted storing in redis HOT 2
- How to use this project with an Aspnetboilerplate project? HOT 1
- Documentation misalignment (most probably) HOT 2
- PostgreSQL unsupported data types HOT 2
- Question about recent changes HOT 1
- JsonSerializer throws exception in EFCacheKeyProvider when using spatial types HOT 1
- Missing time on cache HIT HOT 1
- Support for FusionCache HOT 2
- distributed cache inconsistencies
- EFCacheKeyProvider fails to serialize parameter value of type IPAddress
- How to set cache key prefix dynamically multi-tenant scenario HOT 1
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 efcoresecondlevelcacheinterceptor.