Skip to content

vow-redis

vow-redis Redis client with SET/GET/DEL/EXPIRE/LPUSH/LPOP via RESP — supports redis:// and mem:redis stubs. Install with vpm:

Terminal window
curl -fsSL https://install.vowlang.dev | sh
export PATH="$HOME/.local/bin:$PATH"
vpm add vow-redis@0.1.0
vpm install
import vredis from vow_redis
fn main(caps: Caps) -> int needs Db {
let conn = match vredis.connect("mem:redis") {
Ok(c) => c,
Err(_e) => return 1,
};
match vredis.set(conn, "key", "value") {
Ok(_v) => return 0,
Err(_e) => return 2,
};
}
Terminal window
cd vow-libs/vow-redis && vow test tests/redis.vow -- --grant db:mem:redis