I finally find out the way 
cfg.SetProperty("cache.configuration",redisConnectionString);




On Tuesday, March 12, 2019 at 2:42:36 PM UTC+7, Đạt Ý Đặng Huỳnh wrote:
>
> Hi guys,
>
> I am using *NHibernate.Caches.**StackExchangeRedis* in my project.
> I have add the following code to set cache provider for NHibernate 
>
> cfg.SetProperty("cache.provider_class", 
> "NHibernate.Caches.StackExchangeRedis.RedisCacheProvider,NHibernate.Caches.StackExchangeRedis"
> );
>
> But when i ran project i faced the exception:
> *Application startup exception: NHibernate.Cache.CacheException: The 
> StackExchange.Redis configuration string was not provided.*
>
> How do i resolve this exception? Thanks
> btw, why dont we have no a documents for *NHibernate.Caches.*
> *StackExchangeRedis?*
>

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nhusers+unsubscr...@googlegroups.com.
To post to this group, send email to nhusers@googlegroups.com.
Visit this group at https://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.

Reply via email to