Comments (7)
I have frequently seen people using SysCache2
instead of SysCache
, believing SysCache2
was a later version of it. It is not the case. Granted, the naming is misleading. SysCache2
is SysCache
with Sql Server dependencies, allowing it to be invalidated by events occurring on db-side. If you are not using this feature, you can use any equivalent of SysCache
, which is a memory based cache.
See the documentation.
It lags a bit, RtMemoryCache
is now available for .Net Core too despite what is written in the documentation. And for a pure memory cache, RtMemoryCache
would be my personal choice.
from nhibernate-caches.
@fredericDelaporte we are using syscache2 for the sql cache dependency functionality, as we have multiple apps interacting with the same database that need to inform each other of changes.
Do any of the new .netcore caching options support this feature?
from nhibernate-caches.
NHibernate.Caches.SysCache2
does not support .NET Core, because System.Web.Caching
was not ported. You will have to switch to one of the following caches:
NHibernate.Caches.CoreMemoryCache
NHibernate.Caches.CoreDistributedCache.Memcached
NHibernate.Caches.CoreDistributedCache.Redis
NHibernate.Caches.CoreDistributedCache.SqlServer
NHibernate.Caches.StackExchangeRedis
NHibernate.Caches.RtMemoryCache
The closest to SysCache2
cache is NHibernate.Caches.CoreDistributedCache.SqlServer
, you can try to use it instead.
from nhibernate-caches.
Hi Could you have any link which has the sample code for implementing 1.'NHibernate.Caches.CoreDistributedCache.SqlServer"
2.NHibernate.Caches.CoreMemoryCache
from nhibernate-caches.
You can check how the tests are configured:
from nhibernate-caches.
Currently, no. I do not believe the underlying .Net Framework functionalities required for syscache2 have been ported to .Net Core. It was not the case in 2019, as stated here.
If they are available in .Net Core, you may PR an update to SysCache2 for supporting .Net Core, if doable through an update. Otherwise if it is available in .Net Core but through something too different for an update, you may contribute a new cache provider (preferably better named).
from nhibernate-caches.
Searching a bit the subject again, it seems syscache2 required dependency will not be ported to .Net Core, so syscache2 will remain a .Net Framework only library.
But some other functionalities like SqlDependency
(available as a Platform extension) may allow to create a new provider similar to syscache2, perhaps named SqlDependencyCache
by example. It would have to replace the System.Web.Caching
by a pure memory cache like System.Runtime.Caching
then use SqlDependency
to handle the SQL Server dependencies.
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 1
- Allow replacing ConfigurationManager for reading values HOT 3
- Error when using RedisFactory as second-level cache HOT 2
- 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.