redis-server?
redis-connect
redis-query
redis-disconnect!
redis-reply/ c
exn: redis?
5.3.3

Redis

Jan Dvorak <[email protected]>

Redis client for Racket.

 (require (planet mordae/redis:1:3))

procedure

(redis-server? value)  boolean?

  value : any/c
Determines if given value is a Redis server structure.

procedure

(redis-connect [#:host host #:port port])  redis-server?

  host : string? = "localhost"
  port : (integer-in 1 65535) = 6379
Connects to specified Redis server.

procedure

(redis-query server command arg ...)  redis-reply/c

  server : redis-server?
  command : (or/c string? bytes? symbol?)
  arg : (listof (or/c string? bytes? symbol? integer?))
Executes specified Redis command with given arguments and returns result.

procedure

(redis-disconnect! server)  void?

  server : redis-server?
Disconnects from given Redis server.

procedure

(redis-reply/c value)  boolean?

  value : any/c
Contract for Redis replies.

procedure

(exn:redis? value)  boolean

  value : any/c
Determines if given value is a Redis exception.