15 Set Commands
procedure
(redis-set-add! client key val ...+) → exact-nonnegative-integer?
client : redis? key : redis-key/c val : redis-string/c
procedure
(redis-set-count client key) → exact-nonnegative-integer?
client : redis? key : redis-key/c
procedure
(redis-set-difference client key ...+) → (listof bytes?)
client : redis? key : redis-key/c
procedure
(redis-set-difference! client target key ...+) → exact-nonnegative-integer? client : redis? target : redis-key/c key : redis-key/c
procedure
(redis-set-intersect client key ...+) → (listof bytes?)
client : redis? key : redis-key/c
procedure
(redis-set-intersect! client target key ...+)
→ exact-nonnegative-integer? client : redis? target : redis-key/c key : redis-key/c
procedure
(redis-set-member? client key val) → boolean?
client : redis? key : redis-key/c val : redis-string/c
procedure
(redis-set-members client key) → (listof bytes?)
client : redis? key : redis-key/c
procedure
(redis-set-move! client src dst val) → boolean?
client : redis? src : redis-key/c dst : redis-key/c val : redis-key/c
procedure
(redis-set-pop! client key [#:count count]) → (listof bytes?)
client : redis? key : redis-key/c count : exact-positive-integer? = 1
procedure
(redis-set-random-ref client key [count])
→ (or/c #f bytes? (listof bytes?)) client : redis? key : redis-key/c count : exact-integer? = 1
procedure
(redis-set-remove! client key val ...+)
→ exact-nonnegative-integer? client : redis? key : redis-key/c val : redis-string/c
procedure
(redis-set-scan client key [ #:cursor cursor #:pattern pattern #:limit limit]) →
exact-nonnegative-integer? (listof redis-string/c) client : redis? key : redis-key/c cursor : exact-nonnegative-integer? = 0 pattern : (or/c #f redis-string/c) = #f limit : (or/c #f exact-positive-integer?) = #f
procedure
(redis-set-union client key ...+) → (listof bytes?)
client : redis? key : redis-key/c
procedure
(redis-set-union! client target key ...+)
→ exact-nonnegative-integer? client : redis? target : redis-key/c key : redis-key/c
procedure
(in-redis-set client key) → (sequence/c bytes?)
client : redis? key : redis-key/c
Any keyword arguments that are passed to this function will be forwarded to redis-set-scan.