public void Configure(ICacheConfigurationProperties cache) {
            cache.Provider<AzureCacheProvider>();
            cache.UseQueryCache = true;
            cache.RegionsPrefix = _shellSettings.Name;

            Logger.Information("Configured NHibernate cache provider '{0}' with regions prefix '{1}'.", typeof(AzureCacheProvider).Name, _shellSettings.Name);
        }
        public void Configure(ICacheConfigurationProperties cache)
        {
            cache.Provider <AzureCacheProvider>();
            cache.UseQueryCache = true;
            cache.RegionsPrefix = _shellSettings.Name;

            Logger.Information("Configured NHibernate cache provider '{0}' with regions prefix '{1}'.", typeof(AzureCacheProvider).Name, _shellSettings.Name);
        }
 public static void QueryCacheFactory <TFactory>(this ICacheConfigurationProperties config) where TFactory : IQueryCacheFactory
 {
     ReflectHelper
     .CastOrThrow <CacheConfigurationProperties>(config, "Setting the query cache factory with Loquacious")
     .QueryCacheFactory <TFactory>();
 }
 public void Configure(ICacheConfigurationProperties cache)
 {
     cache.UseQueryCache = false;
 }
 public void Configure(ICacheConfigurationProperties cache) {
     cache.UseQueryCache = false;
 }
示例#6
0
 protected virtual void SetCache(ICacheConfigurationProperties cache)
 {
 }
		protected virtual void SetCache(ICacheConfigurationProperties cache)
		{
		}
示例#8
0
 public void Configure(ICacheConfigurationProperties cache)
 {
     cache.Provider <NHibernate.Caches.SysCache2.SysCacheProvider>();
     cache.UseQueryCache = true;
     cache.RegionsPrefix = _shellSettings.Name;
 }
 public void Configure(ICacheConfigurationProperties cache) {
     cache.Provider<NHibernate.Caches.SysCache2.SysCacheProvider>();
     cache.UseQueryCache = true;
     cache.RegionsPrefix = _shellSettings.Name;
 }