|
From: <fab...@us...> - 2010-09-19 12:31:38
|
Revision: 5191
http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5191&view=rev
Author: fabiomaulo
Date: 2010-09-19 12:31:31 +0000 (Sun, 19 Sep 2010)
Log Message:
-----------
Added missed cache config in loquacious
Modified Paths:
--------------
trunk/nhibernate/src/NHibernate/Cfg/Loquacious/CacheConfiguration.cs
trunk/nhibernate/src/NHibernate/Cfg/Loquacious/ICacheConfiguration.cs
Modified: trunk/nhibernate/src/NHibernate/Cfg/Loquacious/CacheConfiguration.cs
===================================================================
--- trunk/nhibernate/src/NHibernate/Cfg/Loquacious/CacheConfiguration.cs 2010-09-17 16:25:16 UTC (rev 5190)
+++ trunk/nhibernate/src/NHibernate/Cfg/Loquacious/CacheConfiguration.cs 2010-09-19 12:31:31 UTC (rev 5191)
@@ -18,6 +18,11 @@
set { cfg.SetProperty(Environment.UseMinimalPuts, value.ToString().ToLowerInvariant()); }
}
+ public bool UseQueryCache
+ {
+ set { cfg.SetProperty(Environment.UseQueryCache, value.ToString().ToLowerInvariant()); }
+ }
+
public string RegionsPrefix
{
set { cfg.SetProperty(Environment.CacheRegionPrefix, value); }
@@ -35,7 +40,8 @@
public void QueryCache<TFactory>() where TFactory : IQueryCache
{
- cfg.SetProperty(Environment.QueryCacheFactory, typeof (TFactory).AssemblyQualifiedName);
+ UseQueryCache = true;
+ cfg.SetProperty(Environment.QueryCacheFactory, typeof(TFactory).AssemblyQualifiedName);
}
#endregion
Modified: trunk/nhibernate/src/NHibernate/Cfg/Loquacious/ICacheConfiguration.cs
===================================================================
--- trunk/nhibernate/src/NHibernate/Cfg/Loquacious/ICacheConfiguration.cs 2010-09-17 16:25:16 UTC (rev 5190)
+++ trunk/nhibernate/src/NHibernate/Cfg/Loquacious/ICacheConfiguration.cs 2010-09-19 12:31:31 UTC (rev 5191)
@@ -13,6 +13,7 @@
public interface ICacheConfigurationProperties
{
bool UseMinimalPuts { set; }
+ bool UseQueryCache { set; }
string RegionsPrefix { set; }
byte DefaultExpiration { set; }
void Provider<TProvider>() where TProvider : ICacheProvider;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|