Liking cljdoc? Tell your friends :D

carmine.protocol

Facilities for actually communicating with Redis server using its request/response protocol. Originally adapted from Accession.

Ref: http://redis.io/topics/protocol

Facilities for actually communicating with Redis server using its
request/response protocol. Originally adapted from Accession.

Ref: http://redis.io/topics/protocol
raw docstring

*context*clj

source

*parser*clj

source

=ba?clj

(=ba? x y)
source

bs-$clj

source

bs-*clj

source

bs-binclj

source

bs-cljclj

source

bs-crlfclj

source

bytestringclj

(bytestring s)

Redis communicates with clients using a (binary-safe) byte string protocol. This is the equivalent of the byte array representation of a Java String.

Redis communicates with clients using a (binary-safe) byte string protocol.
This is the equivalent of the byte array representation of a Java String.
sourceraw docstring

get-basic-reply!clj

(get-basic-reply! in)

BLOCKS to receive a single reply from Redis server. Applies basic parsing and returns the result.

Redis will reply to commands with different kinds of replies. It is possible to check the kind of reply from the first byte sent by the server:

* With a single line reply the first byte of the reply will be `+`
* With an error message the first byte of the reply will be `-`
* With an integer number the first byte of the reply will be `:`
* With bulk reply the first byte of the reply will be `$`
* With multi-bulk reply the first byte of the reply will be `*`
BLOCKS to receive a single reply from Redis server. Applies basic parsing
and returns the result.

Redis will reply to commands with different kinds of replies. It is possible
to check the kind of reply from the first byte sent by the server:

    * With a single line reply the first byte of the reply will be `+`
    * With an error message the first byte of the reply will be `-`
    * With an integer number the first byte of the reply will be `:`
    * With bulk reply the first byte of the reply will be `$`
    * With multi-bulk reply the first byte of the reply will be `*`
sourceraw docstring

get-one-reply!clj

(get-one-reply!)
source

get-replies!clj

(get-replies! reply-count)

BLOCKS to receive one or more (pipelined) replies from Redis server. Applies all parsing and returns the result.

BLOCKS to receive one or more (pipelined) replies from Redis server. Applies
all parsing and returns the result.
sourceraw docstring

no-context-errorclj

source

send-$clj

(send-$ out)
source

send-*clj

(send-* out)
source

send-argclj

(send-arg out arg)

Send arbitrary argument along with information about its size: $<size of arg> crlf <arg data> crlf

Binary arguments will be passed through un-munged. String arguments will be turned into byte strings. All other arguments (including numbers!) will be serialized.

Send arbitrary argument along with information about its size:
$<size of arg> crlf
<arg data>     crlf

Binary arguments will be passed through un-munged.
String arguments will be turned into byte strings.
All other arguments (including numbers!) will be serialized.
sourceraw docstring

send-binclj

(send-bin out)
source

send-cljclj

(send-clj out)
source

send-crlfclj

(send-crlf out)
source

send-request!clj

(send-request! & args)

Sends a command to Redis server using its byte string protocol:

*<no. of args> crlf [ $<size of arg N> crlf <arg data> crlf ...]

Sends a command to Redis server using its byte string protocol:

*<no. of args>     crlf
[ $<size of arg N> crlf
  <arg data>       crlf ...]
sourceraw docstring

with-contextcljmacro

(with-context connection & body)

Evaluates body in the context of a thread-bound connection to a Redis server.

Evaluates body in the context of a thread-bound connection to a Redis server.
sourceraw docstring

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

× close