Utils for 3rd-party tools that want to add user-configurable Nippy support. Used by Carmine, Faraday, etc.
Utils for 3rd-party tools that want to add user-configurable Nippy support. Used by Carmine, Faraday, etc.
(freeze x)
(freeze x default-opts)
Like nippy/freeze
but merges opts from freeze-opts, wrap-for-freezing
.
Like `nippy/freeze` but merges opts from *freeze-opts*, `wrap-for-freezing`.
(thaw ba)
(thaw ba default-opts)
Like nippy/thaw
but merges opts from *thaw-opts*
.
Like `nippy/thaw` but merges opts from `*thaw-opts*`.
(with-freeze-opts opts & body)
(with-thaw-opts opts & body)
(wrap-for-freezing x)
(wrap-for-freezing x opts)
Ensures that given arg (any freezable data type) is wrapped so that (tools/freeze <wrapped-arg>) will serialize as (nippy/freeze <unwrapped-arg> <opts>).
Ensures that given arg (any freezable data type) is wrapped so that (tools/freeze <wrapped-arg>) will serialize as (nippy/freeze <unwrapped-arg> <opts>).
(wrapped-for-freezing? x)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close