Liking cljdoc? Tell your friends :D
Clojure only.

predis.core


IRediscljprotocol

zrangeclj

(zrange this k start stop)
(zrange this k start stop opts)

msetclj

(mset this kvs)

Ex: (mset [["foo" "1"] ["bar" "2"]])

Ex: (mset [["foo" "1"] ["bar" "2"]])

rpopclj

(rpop this k)

setclj

(set this k v)

zscoreclj

(zscore this k m)

rpoplpushclj

(rpoplpush this src dest)

hmsetclj

(hmset this k kvs)

Ex: (hmset "my-hash" [["field-a" "val-a"] ["field-b" "val-b"]])

Ex:
(hmset "my-hash" [["field-a" "val-a"] ["field-b" "val-b"]])

hgetallclj

(hgetall this k)

decrclj

(decr this k)

unlinkclj

(unlink this k-or-ks)

hdelclj

(hdel this k f-or-fs)

Ex: (hdel "my-hash" "my-field") (hdel "my-hash" ["field-a" "field-b"])

Ex:
(hdel "my-hash" "my-field")
(hdel "my-hash" ["field-a" "field-b"])

pingclj

(ping this)

delclj

(del this k-or-ks)

existsclj

(exists this k)

lpushxclj

(lpushx this k v)

info*clj

(info* this)

mgetclj

(mget this ks)

sunionstoreclj

(sunionstore this dest k-or-ks)

randomkeyclj

(randomkey this)

getclj

(get this k)

ltrimclj

(ltrim this k start stop)

zrevrankclj

(zrevrank this k m)

strlenclj

(strlen this k)

sismemberclj

(sismember this k m)

sinterstoreclj

(sinterstore this dest k-or-ks)

lrangeclj

(lrange this k start stop)

hincrbyclj

(hincrby this k f increment)

zrankclj

(zrank this k m)

zcardclj

(zcard this k)

hvalsclj

(hvals this k)

incrclj

(incr this k)

linsertclj

(linsert this k pos pivot v)

hsetclj

(hset this k f v)

zincrbyclj

(zincrby this k increment m)

rpushxclj

(rpushx this k v)

saddclj

(sadd this k m-or-ms)

Ex: (sadd "my-set" 2) (sadd "my-set" [1 2 3 4])

Ex:
(sadd "my-set" 2)
(sadd "my-set" [1 2 3 4])

zaddclj

(zadd this k kvs)
(zadd this k score m)

Add a single member with a given score, or a seq of [score member] tuples Ex: (zadd "my-zset" 2 "foo") (zadd "my-zset" [[2 "foo"] [3 "bar"]])

Add a single member with a given score, or a seq of
[score member] tuples
Ex:
  (zadd "my-zset" 2 "foo")
  (zadd "my-zset" [[2 "foo"] [3 "bar"]])

scardclj

(scard this k)

zcountclj

(zcount this k min-score max-score)

hgetclj

(hget this k f)

hexistsclj

(hexists this k f)

renamenxclj

(renamenx this k new-k)

hmgetclj

(hmget this k f-or-fs)

Ex: (hmget "my-hash" "my-field") (hmget "my-hash" ["field-a" "field-b"])

Ex:
(hmget "my-hash" "my-field")
(hmget "my-hash" ["field-a" "field-b"])

lsetclj

(lset this k idx v)

appendclj

(append this k v)

setnxclj

(setnx this k v)

lindexclj

(lindex this k idx)

getsetclj

(getset this k v)

zremclj

(zrem this k m-or-ms)

typeclj

(type this k)

dbsizeclj

(dbsize this)

srandmemberclj

(srandmember this k)
(srandmember this k cnt)

renameclj

(rename this k new-k)

smembersclj

(smembers this k)

hincrbyfloatclj

(hincrbyfloat this k f increment)

hkeysclj

(hkeys this k)

sremclj

(srem this k m-or-ms)

incrbyfloatclj

(incrbyfloat this k increment)

rpushclj

(rpush this k v-or-vs)

Ex: (rpush "my-list" 2) (rpush "my-list" [1 2 3 4])

Ex:
(rpush "my-list" 2)
(rpush "my-list" [1 2 3 4])

llenclj

(llen this k)

sinterclj

(sinter this k-or-ks)

sunionclj

(sunion this k-or-ks)

keysclj

(keys this pat)

hsetnxclj

(hsetnx this k f v)

lpushclj

(lpush this k v-or-vs)

Ex: (lpush "my-list" 2) (lpush "my-list" [1 2 3 4])

Ex:
(lpush "my-list" 2)
(lpush "my-list" [1 2 3 4])

getrangeclj

(getrange this k start end)

msetnxclj

(msetnx this kvs)

hlenclj

(hlen this k)

decrbyclj

(decrby this k decrement)

lpopclj

(lpop this k)

msaddclj

(msadd this kvss)

Ex: (msadd "my-set" [[1 [2 3]] 4 [5]])

Ex:
(msadd "my-set" [[1 [2 3]] 4 [5]])

zrevrangeclj

(zrevrange this k start stop)
(zrevrange this k start stop opts)

sdiffstoreclj

(sdiffstore this dest k-or-ks)

smoveclj

(smove this src dest m)

infoclj

(info this)
(info this section)

sdiffclj

(sdiff this k-or-ks)

flushdbclj

(flushdb this)
(flushdb this async?)

lremclj

(lrem this k cnt v)

zrangebyscoreclj

(zrangebyscore this k min-score max-score)
(zrangebyscore this k min-score max-score opts)

scanclj

(scan this cursor)
(scan this cursor opts)

opts - Optional map of :match - String key pattern, e.g. "" :count - Integer count hint, e.g. 3 Ex: (scan "0") (scan "0" {:match "my-prefix"}) (scan "0" {:match "my-prefix*" :count 10})

opts - Optional map of
 :match - String key pattern, e.g. "*"
 :count - Integer count hint, e.g. 3
Ex:
  (scan "0")
  (scan "0" {:match "my-prefix*"})
  (scan "0" {:match "my-prefix*" :count 10})

incrbyclj

(incrby this k increment)

spopclj

(spop this k)
source

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

× close