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

前端 未结 1 1816
囚心锁ツ
囚心锁ツ 2021-02-19 10:26

The NHibernate documentation and the book NHibernate In Action state that the cache provider NHibernate.Cache.HashtableCacheProvider is not intended for production

1条回答
  •  礼貌的吻别
    2021-02-19 10:56

    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 讨论(0)
提交回复
热议问题