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)

Delete the given key value.

expire

Source

Void expire(Str key, Duration timeout)

Expire given key after given timeout has elasped, where timeout must be in even second intervals.

expireAt

Source

Void expireAt(Str key, DateTime timestamp)

Expire given key when the given timestamp has been reached, where timestamp has a resolution of whole seconds.

get

Source

Str? get(Str key)

Get the value for given key.

hdel

Source

Void hdel(Str key, Str field)

Delete given hash field for key.

hget

Source

Str? hget(Str key, Str field)

Get the hash field for given key.

hgetall

Source

Str?[] hgetall(Str key)

Get all hash field values for given key.

hmget

Source

Str?[] hmget(Str key, Str[] fields)

Get the hash field for given key.

hmset

Source

Void hmset(Str key, Str:Obj vals)

Set all hash values in vals for given key.

host

Source

const Str host

Host name of Redis server.

hset

Source

Void hset(Str key, Str field, Obj val)

Set the hash field to the given value for key.

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.

memStats

Source

Str:Obj memStats()

Returns information about the memory usage of server.

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)

Set the given key to value.