(as-input val format)
creates an input from value
(as-input {:a 1} :json) => "{"a":1}"
creates an input from value (as-input {:a 1} :json) => "{\"a\":1}"
(call remote command)
completes a request on the wire
completes a request on the wire
(close remote)
(coerce output)
(coerce output format)
coerces redis return to bytes
coerces redis return to bytes
(coerce-bytes bytes format)
coerces bytes to data
(coerce-bytes (.getBytes "OK") :json) => "OK"
(coerce-bytes (serialize-bytes {:a 1} :json) :json) => {:a 1}
coerces bytes to data (coerce-bytes (.getBytes "OK") :json) => "OK" (coerce-bytes (serialize-bytes {:a 1} :json) :json) => {:a 1}
(deserialize-bytes bytes format)
converts bytes back to data structure
(deserialize-bytes (serialize-bytes {:a 1} :json) :json) => {:a 1}
converts bytes back to data structure (deserialize-bytes (serialize-bytes {:a 1} :json) :json) => {:a 1}
(read remote)
(serialize-bytes val format)
serializes objects (data) to bytes
(h/string (serialize-bytes "HELLO" :string)) => "HELLO"
serializes objects (data) to bytes (h/string (serialize-bytes "HELLO" :string)) => "HELLO"
(write remote command)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close