10 Key Commands
procedure
(redis-count-keys client key ...) → exact-nonnegative-integer?
client : redis? key : redis-key/c
procedure
(redis-expire-at! client key ms) → boolean?
client : redis? key : redis-key/c ms : exact-nonnegative-integer?
procedure
(redis-expire-in! client key ms) → boolean?
client : redis? key : redis-key/c ms : exact-nonnegative-integer?
procedure
(redis-has-key? client key) → boolean?
client : redis? key : redis-key/c
procedure
(redis-key-ttl client key)
→ (or/c 'missing 'persisted exact-nonnegative-integer?) client : redis? key : redis-key/c
If key is not present on the server, then 'missing is returned.
procedure
(redis-key-type client key) → (or/c 'none redis-key-type/c)
client : redis? key : redis-key/c
procedure
(redis-keys client pattern) → (listof bytes?)
client : redis? pattern : redis-string/c
procedure
(redis-move-key! client key db) → boolean?
client : redis? key : redis-key/c db : (integer-in 0 16)
procedure
(redis-persist! client key) → boolean?
client : redis? key : redis-key/c
procedure
(redis-random-key client) → (or/c #f bytes?)
client : redis?
procedure
(redis-remove! client key ...+ [ #:async? async?]) → exact-nonnegative-integer? client : redis? key : redis-key/c async? : boolean? = #f
procedure
(redis-rename! client src dest [ #:unless-exists? unless-exists?]) → boolean? client : redis? src : redis-key/c dest : redis-key/c unless-exists? : boolean? = #f
procedure
(redis-scan client [ #:cursor cursor #:pattern pattern #:limit limit #:type type]) →
exact-nonnegative-integer? (listof redis-key/c) client : redis? cursor : exact-nonnegative-integer? = 0 pattern : (or/c #f redis-string/c) = #f limit : (or/c #f exact-positive-integer?) = #f type : (or/c #f redis-key-type/c) = #f
procedure
(redis-touch! client key ...+) → exact-nonnegative-integer?
client : redis? key : redis-key/c
procedure
(in-redis client) → (sequence/c bytes?)
client : redis?
Any keyword arguments that are passed to this function will be forwarded to redis-scan.