Why is NHibernate.Cache.HashtableCacheProvider not intended for production use?

时间秒杀一切 提交于 2019-12-21 07:46:45

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/4297934/why-is-nhibernate-cache-hashtablecacheprovider-not-intended-for-production-use

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!