ilusm.dev

redis

Redis client via host `__redis_*` (connect, command, get, close).

Load with: use redis

Quick example

use redis

result = rrdck("value")
prn(result)

Functions

Functions

rrdck(r)

Performs the operation. Takes r.

rrdcm(r, cmd, args)

Performs the operation. Takes r, cmd, args.

Connection

rredn(hp)

Performs the operation. Takes hp.

rredn(h, p, opts)

Performs the operation. Takes h, p, opts.

rredc(r)

Performs the operation. Takes r.

rrdcl(r)

Closes or clears. Takes r.

Strings

rrdg(r, k)

Performs the operation. Takes r, k.

rrdse(r, k, v, opts)

Sets a value. Takes r, k, v, opts.

rredd(r, ks)

Performs the operation. Takes r, ks.

rrdex(r, k)

Executes. Takes r, k.

rrdxp(r, k, sec)

Performs the operation. Takes r, k, sec.

rrdttl(r, k)

Performs the operation. Takes r, k.

rrdinc(r, k)

Performs the operation. Takes r, k.

rrdiby(r, k, n)

Performs the operation. Takes r, k, n.

rrddec(r, k)

Performs the operation. Takes r, k.

rrdapp(r, k, v)

Performs the operation. Takes r, k, v.

Hashes

rrdhg(r, k, f)

Performs the operation. Takes r, k, f.

rrdhs(r, k, f, v)

Performs the operation. Takes r, k, f, v.

rrdhf(r, k)

Performs the operation. Takes r, k.

rrdhd(r, k, flds)

Performs the operation. Takes r, k, flds.

rrdhk(r, k)

Performs the operation. Takes r, k.

Lists

rrdlp(r, k, vs)

Performs the operation. Takes r, k, vs.

rrdrp(r, k, vs)

Performs the operation. Takes r, k, vs.

rrdlpp(r, k)

Performs the operation. Takes r, k.

rrdrpp(r, k)

Performs the operation. Takes r, k.

rrdlrg(r, k, st, en)

Performs the operation. Takes r, k, st, en.

rrdlin(r, k, ix)

Initialises. Takes r, k, ix.

rrdlln(r, k)

Performs the operation. Takes r, k.

Sets

rrdsa(r, k, ms)

Performs the operation. Takes r, k, ms.

rrdsr(r, k, ms)

Performs the operation. Takes r, k, ms.

rrdsm(r, k, m)

Performs the operation. Takes r, k, m.

rrdsmb(r, k)

Performs the operation. Takes r, k.

rrdscd(r, k)

Performs the operation. Takes r, k.

Sorted sets

rrdza(r, k, sc, m)

Performs the operation. Takes r, k, sc, m.

rrdzz(r, k, ms)

Performs the operation. Takes r, k, ms.

rrdzzr(r, k, st, en, ws)

Performs the operation. Takes r, k, st, en, ws.

rrdzzk(r, k, m)

Performs the operation. Takes r, k, m.

rrdzzs(r, k, m)

Performs the operation. Takes r, k, m.

rrdzzx(r, k, lo, hi)

Performs the operation. Takes r, k, lo, hi.

Pub/sub

rrdps(r, ch, msg)

Performs the operation. Takes r, ch, msg.

Keys

rrdkeys(r, pat)

Performs the operation. Takes r, pat.

Cache helper

rrdcg(r, k, fb, ttl)

Performs the operation. Takes r, k, fb, ttl.

rrddelpat(r, pat)

Performs the operation. Takes r, pat.

Simple rate limit (fixed window, INCR + EXPIRE)

rrdrl(r, k, mx, win)

Performs the operation. Takes r, k, mx, win.

Lock

rrdlock(r, nm, tmo)

Performs the operation. Takes r, nm, tmo.

rrdulk(r, nm, tok)

Performs the operation. Takes r, nm, tok.

Pipeline

rrdpl(r)

Performs the operation. Takes r.

rrdpa(p, cmd, args)

Parses. Takes p, cmd, args.

rrdpe(p)

Performs the operation. Takes p.

Names used by other stdlib (`be`, cache helpers)

redgt(r, k)

Performs the operation. Takes r, k.

redst(r, k, v, ex)

Sets a value or starts a process. Takes r, k, v, ex.

Notes

  • Full Redis client - all data types, pipelining, clustering.