1 Clients
Each client represents a single TCP connection to the Redis server.
procedure
(make-redis [ #:client-name client-name #:host host #:port port #:timeout timeout #:db db #:username username #:password password]) → redis? client-name : string? = "racket-redis" host : string? = "127.0.0.1" port : (integer-in 0 65536) = 6379 timeout : exact-nonnegative-integer? = 5 db : (integer-in 0 16) = 0 username : (or/c false/c non-empty-string?) = #f password : (or/c false/c non-empty-string?) = #f
If the username argument is provided, then Redis 6.0 is assumed and an AUTH username password command will be sent to the server after a connection is established.
If the password argument is provided without a username, then an AUTH password command is emitted. This is compatible with all versions of Redis since 1.0.
Each client maps to an individual connection, therefore clients are not thread safe! See Connection Pooling.
procedure
(redis-connected? client) → boolean?
client : redis?
procedure
(redis-connect! client) → void?
client : redis?
procedure
(redis-disconnect! client) → void?
client : redis?
value
redis-key/c : (or/c bytes? string?)
value
redis-key-type/c : (or/c 'string 'list 'set 'zset 'hash 'stream)
value
value
: (or/c false/c bytes? string? exact-integer? (listof redis-value/c))