Liking cljdoc? Tell your friends :D

taoensso.nippy.tools

Utils for community tools that want to add user-configurable Nippy support. Used by Carmine, Faraday, etc.

Utils for community tools that want to add user-configurable Nippy support.
Used by Carmine, Faraday, etc.
raw docstring

*freeze-opts*clj


*thaw-opts*clj


freezeclj

(freeze x)
(freeze x default-opts)

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

  1. default-opts given to this fn (default nil).
  2. tools/*freeze-opts* dynamic value (default nil).
  3. Opts captured by tools/wrap-for-freezing (default nil).

See also tools/wrap-for-freezing.

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

  1. `default-opts` given to this fn            (default nil).
  2. `tools/*freeze-opts*` dynamic value        (default nil).
  3. Opts captured by `tools/wrap-for-freezing` (default nil).

See also `tools/wrap-for-freezing`.
raw docstring

thawclj

(thaw ba)
(thaw ba default-opts)

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

  1. default-opts given to this fn (default nil).
  2. tools/*thaw-opts* dynamic value (default nil).
Like `nippy/thaw` but uses as options the following, merged in
order of ascending preference:

  1. `default-opts` given to this fn   (default nil).
  2. `tools/*thaw-opts*` dynamic value (default nil).
raw docstring

with-freeze-optscljmacro

(with-freeze-opts opts & body)

with-freeze-opts+cljmacro

(with-freeze-opts+ opts & body)

with-thaw-optscljmacro

(with-thaw-opts opts & body)

with-thaw-opts+cljmacro

(with-thaw-opts+ opts & body)

wrap-for-freezingclj

(wrap-for-freezing x)
(wrap-for-freezing x wrap-opts)

Captures (merge tools/*thaw-opts* wrap-opts), and returns the given argument in a wrapped form so that tools/freeze will use the captured options when freezing the wrapper argument.

See also tools/freeze.

Captures (merge `tools/*thaw-opts*` `wrap-opts`), and returns
the given argument in a wrapped form so that `tools/freeze` will
use the captured options when freezing the wrapper argument.

See also `tools/freeze`.
raw docstring

wrapped-for-freezing?clj

(wrapped-for-freezing? x)

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

× close