taoensso.carmine.commands
Macros to define an up-to-date, fully documented function for every Redis command as specified in the official json command spec.
defcommand
macro
(defcommand cmd-name spec)
defcommands
macro
(defcommands)
enqueue-request
(enqueue-request cluster-key-idx request more-args)
(enqueue-request cluster-key-idx request)
Implementation detail. Takes a request like ["SET" "my-key" "my-val"] and adds it to dynamic context's request queue.
IKeySlot
protocol
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).
members
keyslot
(keyslot redis-key)