Define an appropriate function for EVERY Redis command. This is done by parsing the official Redis command reference (JSON) which includes up-to-date docstrings, argument specs, etc. This awesome approach was adapted from labs-redis-clojure.
Define an appropriate function for EVERY Redis command. This is done by parsing the official Redis command reference (JSON) which includes up-to-date docstrings, argument specs, etc. This awesome approach was adapted from labs-redis-clojure.
(defcommand cmd-name {args :arguments :as refspec})(defcommands)(enqueue-request request cluster-key-idx)Implementation detail. Takes a request like ["SET" "my-key" "my-val"] and adds it to context's request queue with relevant metadata from dynamic environment.
Implementation detail. Takes a request like ["SET" "my-key" "my-val"] and adds it to context's request queue with relevant metadata from dynamic environment.
(keyslot x)Returns the Redis Cluster key slot ℕ∈[0,num-keyslots) for given key arg using the CRC16 algorithm, Ref. http://redis.io/topics/cluster-spec Appendix A.
Returns the Redis Cluster key slot ℕ∈[0,num-keyslots) for given key arg using the CRC16 algorithm, Ref. http://redis.io/topics/cluster-spec Appendix A.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs | 
| ← | Move to previous article | 
| → | Move to next article | 
| Ctrl+/ | Jump to the search field |