taoensso.nippy.tools documentation
Alpha - subject to change.
Utilities for third-party tools that want to add fully-user-configurable Nippy
support. Used by Carmine and Faraday.
->EncryptedFrozen
(->EncryptedFrozen ba)
Positional factory function for class taoensso.nippy.tools.EncryptedFrozen.
->WrappedForFreezing
(->WrappedForFreezing value opts)
Positional factory function for class taoensso.nippy.tools.WrappedForFreezing.
encrypted-frozen?
(encrypted-frozen? x)
freeze
(freeze x & [{:keys [default-opts]}])
Like `nippy/freeze` but takes options from special argument wrapper when
present.
map->EncryptedFrozen
(map->EncryptedFrozen m__5665__auto__)
Factory function for class taoensso.nippy.tools.EncryptedFrozen, taking a map of keywords to field values.
map->WrappedForFreezing
(map->WrappedForFreezing m__5665__auto__)
Factory function for class taoensso.nippy.tools.WrappedForFreezing, taking a map of keywords to field values.
thaw
(thaw ba & [{:keys [default-opts]}])
Like `nippy/thaw` but takes options from *thaw-opts* binding, and wraps
encrypted bytes for easy identification when no password has been provided
for decryption.
with-thaw-opts
macro
(with-thaw-opts opts & body)
Evaluates body using given options for any automatic deserialization in
context.
wrap-for-freezing
(wrap-for-freezing value & [opts])
Wraps arg (any freezable data type) so that (tools/freeze <wrapped-arg>)
will serialize the arg using given options.
wrapped-for-freezing?
(wrapped-for-freezing? x)