Index
Modules:
ready
,
ready/connections
,
ready/pools
.
API symbols
`$`:
connections: proc `$`(conn: RedisConn): string
connections: proc `$`(reply: RedisReply): string
`[]`:
connections: proc `[]`(reply: RedisReply; index: int): RedisReply
borrow:
pools: proc borrow(pool: RedisPool): RedisConn
close:
connections: proc close(conn: RedisConn)
pools: proc close(pool: RedisPool)
command:
connections: proc command(conn: RedisConn; command: string; args: varargs[string]): RedisReply
pools: proc command(pool: RedisPool; command: string; args: varargs[string]): RedisReply
newRedisConn:
connections: proc newRedisConn(address = "localhost"; port = Port(6379)): RedisConn
newRedisPool:
pools: proc newRedisPool(size: int; address = "localhost"; port = Port(6379); onConnect: proc (conn: RedisConn) {.gcsafe.} = nil; onBorrow: proc ( conn: RedisConn; lastReturned: float) {.gcsafe.} = nil): RedisPool
receive:
connections: proc receive(conn: RedisConn): RedisReply
recycle:
pools: proc recycle(pool: RedisPool; conn: RedisConn)
RedisConn:
connections: type RedisConn
RedisError:
connections: object RedisError
RedisPool:
pools: type RedisPool
RedisReply:
connections: object RedisReply
send:
connections: proc send(conn: RedisConn; commands: openArray[(string, seq[string])])
connections: proc send(conn: RedisConn; command: string; args: varargs[string])
to:
connections: proc to[T](reply: RedisReply; t: typedesc[T]): T
withConnection:
pools: template withConnection(pool: RedisPool; conn, body)