Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 578
Marco Eckstein Avatar asked Nov 28 '10 17:11

Marco Eckstein


1 Answers

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.

like image 163
Diego Mijelshon Avatar answered Sep 30 '22 11:09

Diego Mijelshon