predis.core

IRedis

protocol

members

append

(append this k v)

dbsize

(dbsize this)

decr

(decr this k)

decrby

(decrby this k decrement)

del

(del this k-or-ks)

exists

(exists this k)

flushdb

(flushdb this)

get

(get this k)

hdel

(hdel this k f-or-fs)
Ex:
(hdel "my-hash" "my-field")
(hdel "my-hash" ["field-a" "field-b"])

hexists

(hexists this k f)

hget

(hget this k f)

hgetall

(hgetall this k)

hincrby

(hincrby this k f increment)

hincrbyfloat

(hincrbyfloat this k f increment)

hkeys

(hkeys this k)

hlen

(hlen this k)

hmget

(hmget this k f-or-fs)
Ex:
(hmget "my-hash" "my-field")
(hmget "my-hash" ["field-a" "field-b"])

hmset

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

hset

(hset this k f v)

hsetnx

(hsetnx this k f v)

hvals

(hvals this k)

incr

(incr this k)

incrby

(incrby this k increment)

incrbyfloat

(incrbyfloat this k increment)

keys

(keys this pat)

lindex

(lindex this k idx)

llen

(llen this k)

lpop

(lpop this k)

lpush

(lpush this k v-or-vs)
Ex:
(lpush "my-list" 2)
(lpush "my-list" [1 2 3 4])

lpushx

(lpushx this k v)

lrange

(lrange this k start stop)

lrem

(lrem this k cnt v)

mget

(mget this ks)

mset

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

ping

(ping this)

randomkey

(randomkey this)

rename

(rename this k new-k)

renamenx

(renamenx this k new-k)

rpop

(rpop this k)

rpush

(rpush this k v-or-vs)
Ex:
(rpush "my-list" 2)
(rpush "my-list" [1 2 3 4])

rpushx

(rpushx this k v)

sadd

(sadd this k m-or-ms)
Ex:
(sadd "my-set" 2)
(sadd "my-set" [1 2 3 4])

scan

(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})

scard

(scard this k)

sdiff

(sdiff this k-or-ks)

sdiffstore

(sdiffstore this dest k-or-ks)

set

(set this k v)

setnx

(setnx this k v)

sinter

(sinter this k-or-ks)

sinterstore

(sinterstore this dest k-or-ks)

sismember

(sismember this k m)

smembers

(smembers this k)

smove

(smove this src dest m)

spop

(spop this k)

srandmember

(srandmember this k)(srandmember this k cnt)

srem

(srem this k m-or-ms)

strlen

(strlen this k)

sunion

(sunion this k-or-ks)

sunionstore

(sunionstore this dest k-or-ks)

type

(type this k)