Questions tagged [syscache]
16 questions
16
votes
2 answers
NHibernate 3.3 and SysCache
The current version of SysCache does not appear to work with NHibernate 3.3. I replaced the NHibernate dlls in my web/bin directory and left the SysCache dll (which works with 3.2) untouched. Now when IIS tries to do a pre-bind it loads the SysCache…

Andrew Wheeler
- 213
- 2
- 6
5
votes
0 answers
ArgumentNullException when caching a sqlquery on NHibernate
Environment: NHibernate 4.0.0.4000; NHibernate.Caches.SysCache 4.0.0.4000; Web MVC/API 4.5.1; FluentNHibernate 1.4.0.0; VS2013;
I'm trying to cache a SQL Query on nhibernate (which works perfectly without caching) as you can see:
return…

WoF_Angel
- 2,569
- 9
- 35
- 54
4
votes
2 answers
NHibernate second-level cache with external updates
I've got a web application that is 99% read-only, with a separate service that updates the database at specific intervals (like every 10 minutes). How can this service tell the application to invalidate it's second-level cache? Is it actually…

SztupY
- 10,291
- 8
- 64
- 87
3
votes
1 answer
How do I configure cache regions for syscache in nhibernate?
I tried to use a cache configuration like this post from a website:

Isaac Bolinger
- 7,328
- 11
- 52
- 90
3
votes
0 answers
Orchard takes too long to load - How to set SysCache DefaultExpiration?
I have a simple Orchard website with about 100 blog posts. If no one enters the website for more than 5 minutes loading the page takes about 10-15 seconds. This happens only on the blog page where it has to load a bunch of posts. The rest of the…

Eyal
- 193
- 1
- 10
3
votes
2 answers
nhibernate L2 caching: configure by code
how to configure second level cache in code (not thru xml)
the current settings i have are:
public NHCachingSetup(Configuration cfg)
{
// use first level cache
cfg.Cache(x =>
{
…
user2165424
2
votes
1 answer
NHibernate SysCache does not cache children objects
Hoping for your assistance.
I have simple master-child sets ("player" and "playerChildObject"). Fetching "players" also fetches their linked children.
SysCache caches players, however doesn't cache children.
Here are the objects (both set with…

Yura K.
- 115
- 1
- 8
2
votes
1 answer
Nhibernate + nuget + syscache
If I install NHibernate and Syscache via nuget, I get a big "Could not load file or assembly" error. Basically Syscache has been built against NH 3.2, but the current version of NH on nuget is 3.3.
Incidentally I had exactly the same issue with…

Chris Haines
- 6,445
- 5
- 49
- 62
1
vote
1 answer
Why will NHibernate not use 2nd level cache on second request?
I have the following model.
…

roydukkey
- 3,149
- 2
- 27
- 43
1
vote
1 answer
How to configure syscache's Region and Expiration using code (not in App.Config xml)
I'm trying to configure NHibernate's 2nd level cache.
I want to configure by code and not use xml configuration
I've followed most of the tutorial but I can't seem to translate this xml configuration in code:

ncfuncion
- 227
- 1
- 3
- 11
1
vote
1 answer
Can I use NHibernate SysCache with Non-Web-Application?
I have a Windows Service which is using NHibernate (3) and SQL Server 2008. WPF-Clients are connecting over WCF to this Service for using DataAccess.
My question is now: Can I use SysCache or SysCache2 in this Scenario - or are they only usable in…

BennoDual
- 5,865
- 15
- 67
- 153
0
votes
1 answer
ASP.NET cache in a console app?
I have a console command line app that use NHibernate . I am trying to use second level caching . Is it possible to use NHibernate SysCache or SysCache2 , which have dependency on ASP.Net cache ( System.Web.Caching.Cache ) ?
Do I need IIS to use…

dan_l
- 1,692
- 2
- 23
- 40
0
votes
1 answer
SysCache2 and FluentNhibernate on MVC aplication
I am having a problem with SysCache/SysCache2 on my MVC application. My configuration seems to be correct. I have set it up just like countless examples on the web.
On my class I have put: …

AdrianCogiel
- 131
- 2
- 13
0
votes
2 answers
Unable to cast object of type 'NHibernate.Caches.SysCache.SysCacheProvider' to type 'NHibernate.Cache.ICacheProvider'
I'm using NHibernate 2.1.2 via Castl ActiveRecord. I wanted to set up second level cache using SysCache. But I got error:
Unable to cast object of type 'NHibernate.Caches.SysCache.SysCacheProvider' to type 'NHibernate.Cache.ICacheProvider'.
How can…

Afshar Mohebi
- 10,479
- 17
- 82
- 126
0
votes
1 answer
Evict 2nd level cache items Syscache/Nhibernate
I am using NHibernate 3.3 with Syscache 2nd level cache and I am trying to evict an object from the 2nd level cache, but it doesn't seem to work.
I am using this code based on other examples:
var CollectionCache =…

Kees de Winter
- 1
- 1