Closed sironjuh closed 3 years ago
@sironjuh Hi Juha-Matti,
You've got two ways of doing this without altering the root var:
carmine/with-thaw-opts
with {:serializable-allowlist _}
.binding
with nippy/*thaw-serializable-allowlist*
.Both will establish thread-local options to cover whatever code is in the relevant body.
Hope that helps? Cheers! :-)
@ptaoussanis Hello,
Option 1 could work as well for our use case, just needs a bit different approach what we currently have. I'll tinker around. Thanks for the nice lib btw.
After upgrading to carmine 3.x, we had one class that needed to be added to nippys serializable allowlist.
We would like to do this programmatically, and while the alter-var-root method works, now our code is directly modifying the behaviour of an internal dependency of carmine.
Would it be possible to add functions to carmine itself that would hide this direct modification from using clients?