NHibernate SysCacheProvider默认过期和缓存区域

NHibernate SysCacheProvider默认过期和缓存区域,nhibernate,Nhibernate,是否有一种方法可以在不使用缓存区域的情况下配置5分钟的默认NHibernate.Caches.SysCache.SysCacheProvider到期时间?是否有可以从配置文件中设置的hibernate属性?在配置文件中: <property name="cache.default_expiration">seconds</property> 秒 谢谢你,迭戈。工作很愉快。fluent nhibernate呢?@Johnny_DExposeConfiguration(co

是否有一种方法可以在不使用缓存区域的情况下配置5分钟的默认NHibernate.Caches.SysCache.SysCacheProvider到期时间?是否有可以从配置文件中设置的hibernate属性?

在配置文件中:

<property name="cache.default_expiration">seconds</property>

谢谢你,迭戈。工作很愉快。fluent nhibernate呢?@Johnny_D
ExposeConfiguration(config=>config.SessionFactory().Caching.WithDefaultExpiration(seconds))
对不起,我的ExposeConfiguration委托中没有任何
config.SessionFactory
部分。@Johnny_D这是一个扩展方法,使用nhibernate.Cfg