NHibernate 使用 AppFabric 进行二级缓存
有人使用 AppFabric 进行二级缓存吗?
我知道它遵循与 Velocity 相同的 api (nhibernate.caches.velocity),但想知道是否有人已经有使用它的一些生产经验,以及他们是否知道任何特定的技巧或问题?
Has anyone used AppFabric for their second level caching?
I know it's to follow the same api as for Velocity (nhibernate.caches.velocity) but wanted to know if anyone already had some production experience of using it and if they knew of any particular tips or problems?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我目前知道的唯一问题是这个问题,Velocity 缓存代码中的引用已过时,需要更新到 AppFabric v1 发布程序集。
The only problem I'm currently aware of is what was covered in this question, that the references in the Velocity cache code are out of date and need updating to the AppFabric v1 release assemblies.
我没有使用 AppFabric 作为二级缓存,但我使用过 NCache 作为 Nhibernate 的二级缓存,结果相当令人满意。默认情况下,NHibernation 提供独立的 InProc(进程中)一级 (L1) 缓存,或会话级缓存。然而除此之外,NHibernate 还支持插入二级缓存,以利用复杂的企业级缓存基础设施的优势。
I haven't used AppFabric as second level cache but I've used NCache as second level cache for Nhibernate and results were quite satisfactory.By default NHibernation provides a stand alone InProc (in process) first-level (L1) cache, or session-level cache. However in addition, , NHibernate also supports a second-level cache to be plugged in to exploit the benefits of a sophisticated enterprise-grade caching infrastructure.