Use Bounded Cache with Context
ikitommi opened this issue · comments
The default implementation stores all unique SQL sentences on a HashMap
, which is a potential memoery leak. The default should be a fast bounded cache.
Thoughts on using Caffeine as a default cache backend? Already has Clojure wrappings
Another option is using core.cache.
Caffeine is probably more battle-tested.
I'd be happy to implement the chosen solution.