什么是二级缓存?
我们必须在我们的项目中使用 Telerik ORM。当我阅读它的功能时,它夸耀了太多其二级缓存功能。谁能解释一下这是什么?
提前致谢:)
We have to use Telerik ORM for our project. As i was reading its features it boasts too much about its 2nd level cache feature. Can anybody explain me what is it?
Thanks in advance:)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
它能够在 DataContext/UoW/Session 之外缓存查询结果的数据(无论 telerik 决定如何称呼它)。因此,第一个查询之后的任何查询都将返回缓存的数据。
与使用应用程序缓存或内存缓存等相同。
编辑:
Google 搜索“Telerik 二级缓存”返回:
http://www.telerik.com/help/openaccess-orm/2nd-level-cache.html
It's the ability to cache the data of the result of a query outside of the DataContext/UoW/Session (what ever telerik decided to call it). So any queries after the initial one will return cached data.
Same as using the application cache or memcache etc.
Edit:
A google for "Telerik Second Level Cache" returned:
http://www.telerik.com/help/openaccess-orm/2nd-level-cache.html
如果它类似于 NHibernate 的二级缓存,则意味着查询缓存。
If it's anything like NHibernate's 2nd level cache it means query caching.