const classredis::RedisClient

sys::Obj
  redis::RedisClient

Redis client.

close

Source

Void close()

Close this client all connections if applicable.

del

Source

Void del(Str key)

Convenience for invoke(["DEL", key]).

get

Source

Str? get(Str key)

Convenience for invoke(["GET", key]).

host

Source

const Str host

Host name of Redis server.

invoke

Source

Obj? invoke(Obj[] args)

Invoke the given command and return response.

make

Source

new make(Str host, Int port := 6379)

Create a new client instance for given host and port.

pipeline

Source

Obj?[] pipeline(Obj[] invokes)

Pipeline multiple invoke requests and return batched results.

port

Source

const Int port

Port number of Redis server.

set

Source

Void set(Str key, Obj val)

Convenience for invoke(["SET", key, val]).