8 Hash Commands
procedure
(redis-hash-get client key) → hash?
client : redis? key : redis-key/c (redis-hash-get client key fld ...+) → hash? client : redis? key : redis-key/c fld : redis-string/c
procedure
(redis-hash-has-key? client key fld) → boolean?
client : redis? key : redis-key/c fld : redis-string/c
procedure
(redis-hash-incr! client key fld amt) → real?
client : redis? key : redis-key/c fld : redis-string/c amt : real?
procedure
(redis-hash-keys client key) → (listof bytes?)
client : redis? key : redis-key/c
procedure
(redis-hash-length client key) → exact-nonnegative-integer?
client : redis? key : redis-key/c
procedure
(redis-hash-ref client key fld) → redis-value/c
client : redis? key : redis-key/c fld : redis-string/c
procedure
(redis-hash-remove! client key fld ...+)
→ exact-nonnegative-integer? client : redis? key : redis-key/c fld : redis-string/c
procedure
(redis-hash-scan client key [ #:cursor cursor #:pattern pattern #:limit limit])
→
exact-nonnegative-integer? (listof redis-key/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-hash-set! client key fld value) → boolean?
client : redis? key : redis-key/c fld : redis-string/c value : redis-string/c
(redis-hash-set! client key fld value ...+ ...+) → boolean? client : redis? key : redis-key/c fld : redis-string/c value : redis-string/c (redis-hash-set! client key d) → boolean? client : redis? key : redis-key/c d : dict?
The second form sets each pair of fld and values within the hash at key.
procedure
(redis-hash-string-length client key fld)
→ exact-nonnegative-integer? client : redis? key : redis-key/c fld : redis-string/c
procedure
(redis-hash-values client key) → (listof bytes?)
client : redis? key : redis-key/c
procedure
(in-redis-hash client key) → (sequence/c (cons/c bytes? bytes?))
client : redis? key : redis-key/c
Any keyword arguments that are passed to this function will be forwarded to redis-hash-scan.