RESP https://redis.io/docs/reference/protocol-spec/
Types
RedisError = object of CatchableError
- Source Edit
RedisReply = object case of SimpleStringReply: of BulkStringReply: of IntegerReply: of ArrayReply:
- Source Edit
Procs
func `$`(reply: RedisReply): string {....raises: [Exception], tags: [RootEffect], forbids: [].}
- Source Edit
proc `[]`(reply: RedisReply; index: int): RedisReply {....raises: [RedisError], tags: [], forbids: [].}
- Source Edit
proc command(conn: RedisConn; command: string; args: varargs[string]): RedisReply {. ...raises: [RedisError], tags: [], forbids: [].}
- Sends a command to the Redis server and receives the reply. Source Edit
proc newRedisConn(address = "localhost"; port = Port(6379)): RedisConn {. ...raises: [OSError], tags: [], forbids: [].}
- Source Edit
proc receive(conn: RedisConn): RedisReply {....raises: [RedisError], tags: [], forbids: [].}
- Receives a single reply from the Redis server. Source Edit
proc send(conn: RedisConn; command: string; args: varargs[string]) {.inline, ...raises: [RedisError], tags: [], forbids: [].}
- Sends a command to the Redis server. Source Edit
proc send(conn: RedisConn; commands: openArray[(string, seq[string])]) {. ...raises: [RedisError], tags: [], forbids: [].}
- Sends commands to the Redis server. Source Edit
proc to[T](reply: RedisReply; t: typedesc[T]): T
- Source Edit