Hi,
after some more testing/investigation i can tell that I can set an
expiration on a region basis:
<syscache>
<cache region="MyNamespace.Edition" expiration="1000" />
</syscache>
and I looking at the code of NHibernate.Caches.SysCache I actually get
the impression that the default expiration time ist set to 300
seconds:
private static readonly TimeSpan _defaultExpiration =
TimeSpan.FromSeconds(300);
and can not be changed by any configuration, which would make the
Section
To tell NHibernate which cache provider to use, add in your
NHibernate configuration file (can be YourAssembly.exe.config or
web.config or a .cfg.xml file, in the latter case the syntax will be
different from what is
shown below):
<add
key="hibernate.cache.provider_class" value="XXX" />(1)
<add key="expiration"
value="120" />(2)
(1) "XXX" is the assembly-qualified class name of a class
implementing ICacheProvider, eg.
"NHibernate.Caches.SysCache.SysCacheProvider,
NHibernate.Caches.SysCache".
(2) The expiration value is the number of seconds you wish
to cache each entry (here two minutes). This example applies to
SysCache only.
in "22.1. How to use a cache?" (http://nhforge.org/doc/nh/en/
index.html#nhcaches-expiration) incorrect.
Best,
Ronald
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---