Liking cljdoc? Tell your friends :D

taoensso.nippy.tools

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.
raw docstring

*freeze-opts*clj

source

*thaw-opts*clj

source

freezeclj

(freeze x)
(freeze x default-opts)

Like nippy/freeze but uses as opts the following merged in order of ascending preference:

  • Optional default-opts arg given to this fn (default nil).
  • Optional *freeze-opts* dynamic value (default nil).
  • Optional opts provided to wrap-for-freezing (default nil).
Like `nippy/freeze` but uses as opts the following merged in order of
ascending preference:

  - Optional `default-opts` arg given to this fn  (default nil).
  - Optional `*freeze-opts*` dynamic value        (default nil).
  - Optional opts provided to `wrap-for-freezing` (default nil).
sourceraw docstring

thawclj

(thaw ba)
(thaw ba default-opts)

Like nippy/thaw but uses as opts the following merged in order of ascending preference:

  • Optional default-opts arg given to this fn (default nil).
  • Optional *thaw-opts* dynamic value (default nil).
Like `nippy/thaw` but uses as opts the following merged in order of
ascending preference:

  - Optional `default-opts` arg given to this fn  (default nil).
  - Optional `*thaw-opts*` dynamic value          (default nil).
sourceraw docstring

with-freeze-optscljmacro

(with-freeze-opts opts & body)
source

with-thaw-optscljmacro

(with-thaw-opts opts & body)
source

wrap-for-freezingclj

(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>).

See also nippy.tools/freeze, nippy.tools/thaw.

Ensures that given arg (any freezable data type) is wrapped so that
(tools/freeze <wrapped-arg>) will serialize as
(nippy/freeze <unwrapped-arg> <opts>).

See also `nippy.tools/freeze`, `nippy.tools/thaw`.
sourceraw docstring

wrapped-for-freezing?clj

(wrapped-for-freezing? x)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close