为什么 NHibernate.Cache.HashtableCacheProvider 不适合生产使用?

发布于 2024-10-04 19:30:08 字数 317 浏览 0 评论 0原文

NHibernate 文档 和本书 NHibernate In Action 声明缓存提供程序 NHibernate.Cache.HashtableCacheProvider 不适用于生产用途。然而,我找不到这样做的理由。有谁知道原因吗?

The NHibernate documentation and the book NHibernate In Action state that the cache provider NHibernate.Cache.HashtableCacheProvider is not intended for production use. However, I could not find a reason for this. Does anyone know the reason?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

烟沫凡尘 2024-10-11 19:30:08

因为它不支持任何类型的合理缓存语义(想到的第一个例子:超时),并且它基本上无限期地增长。

它仅用于测试,因为它仅提供本地缓存的最简单的实现。

Because it doesn't support any kind of reasonable caching semantics (first example that comes to mind: timeouts), and it basically grows indefinitely.

It's intended for testing only, as it just provides the simplest possible implementation of a local cache.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文