Comments (2)
Looking on desctiption it's not a bug but configuration issue on your side. I have no idea how it should be properly configured and it's not a place to discuss such thing but...
Few hints:
The ICacheProvider implementation for Redis (NHibernate.Caches.CoreDistributedCache.Redis.RedisFactory) does not have a parameterless constructor
Nope. This class doesn't implement ICacheProvider
. Also naming for this class is also wrong to be cache provider used in cache.provider_class
. I believe class should be suffixed with [Something]CacheProvider
. So just find proper class name.
For using it, reference the cache factory package and set the factory-class attribute of the coredistributedcache configuration section to NHibernate.Caches.CoreDistributedCache.Redis.RedisFactory, NHibernate.Caches.CoreDistributedCache.Redis.
So why are you supplying RedisFactory
to cache.provider_class
? In documentation it's clearly states that this value should be set in factory-class
attribute of the coredistributedcache
configuration section.
from nhibernate-caches.
Also consider using NHibernate.Caches.StackExchangeRedis
instead. (It will be included in the documentation on next documentation update.)
CoreDistributedCache
is a generic cache provider able of targeting many concrete cache provider, but not exploiting their advanced features like batched cache operations.
The cache provider with CoreDistributedCache
is the generic provider, CoreDistributedCacheProvider
. Then you have to configure this generic provider for it to know which concrete cache provider it has to use. See the test configuration file in the test project sources.
from nhibernate-caches.
Related Issues (20)
- NHibernate.Caches.StackExchangeRedis.DistributedLocalCacheRegionStrategy UpdateTimestampsCache concurrency issue HOT 1
- Best cache for cluster production environment HOT 3
- Compatibility net core 3.1 HOT 1
- Unable to use DistributedCache with JsonCacheSerializer HOT 1
- `ConfigurationProvider.Current` shouldn't depend on `IConfigurationSectionHandler` from `System.Configuration.ConfigurationManager`
- How to use NHibernate.Caches.StackExchangeRedis.TwoLayerCacheRegionStrategy HOT 10
- NHibernate Redis Caches goes into closed loop with multiple threads HOT 20
- Collection Cache is not removed from Redis when the child entity record is deleted or new one added HOT 6
- "Third Level Cache" for Redis HOT 5
- DistributedLocalCacheRegionStrategy - failed to lazily initialize a collection of role HOT 1
- CoreDistributedCache: BinaryFormatter key Value cannot be null HOT 2
- Cache issue-.net core 3.0-Could not load type 'System.Web.Caching.CacheItemPriority' HOT 7
- Cache issue-.net core 3.0-Could not load type 'System.Web.Caching.CacheItemPriority' HOT 1
- Allow replacing ConfigurationManager for reading values HOT 3
- StackExchangeRedis: Connection resilience HOT 2
- Add support for custom serializer in CoreDistributedCache HOT 5
- Is there any way to set and use custom regions for StackExchangeRedis? HOT 7
- Consider defaulting to another serializer than binary HOT 13
- Migrating from NHiberate 5.2.7 to 5.3.5 results in could not load assembly exception HOT 3
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 nhibernate-caches.