I can't use Second Level Cache with ABP
See original GitHub issueI cannot implement the Second Level Cache library because it needs to use the service provider and it is not available in the method that configures the
DbContext Configuration.Modules.AbpEfCore().AddDBContext<MyDbContext>(options => ....... ..
And something like this is needed
Configuration.Modules.AbpEfCore().AddDBContext<MyDbContext>((serviceProvider, options) => .......
Can you please help me to find a solution so inside the configurer I can implement this
builder.UseSqlServer(connectionString).AddInterceptors(serviceProvider.GetRequiredService<SecondLevelCacheInterceptor>());
Issue Analytics
- State:
- Created 6 months ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Second level cache not working in Hibernate + Spring + ...
The second level cache is not working because you are not fetching data by ID (see this link When and how to use...
Read more >Caching | Documentation Center | ABP.IO
NET Core's documentation to see how to switch to Redis or another cache provider. ... You can use the CacheName attribute on the...
Read more >Hibernate Second-Level Cache
A guide to the Hibernate second-level cache and how to use it in practice.
Read more >Hibernate EHCache - Hibernate Second Level Cache
Hibernate Second Level cache providers include EHCache and Infinispan, but EHCache is more popular and we will use it for our example project....
Read more >Hibernate - Enable and Implement First and Second Level ...
In your code, enable the first level cache for a specific session by calling the setCacheable(true)method on the Query object before executing ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, it is not same.
I will try to prepare a sample but it might take some time.