开发者

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

开发者 https://www.devze.com 2023-01-27 12:50 出处:网络
The NHibernate documentation and the book NHibernate In Action state that the cache provider NHibernate.Cache.HashtableCacheProvider is not inten开发者_开发百科ded for production use. However, I could

The NHibernate documentation and the book NHibernate In Action state that the cache provider NHibernate.Cache.HashtableCacheProvider is not inten开发者_开发百科ded for production use. However, I could not find a reason for this. Does anyone know the reason?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消