Available
amalgame-redis
Pure RESP2 client, no vendored lib. KeyDB/Dragonfly/Valkey compat.
Overview
Pure-AM implementation of the RESP2 protocol over raw TCP. No vendored C library, no system dependency. Compatible with Redis, KeyDB, Dragonfly, Valkey and any server speaking RESP2.
Features
- ✓Pure-Amalgame RESP2 protocol — no C binding
- ✓
Get/Set/Del/Incr/ExpireAPI - ✓Pub/sub support (Subscribe / Publish)
- ✓Pipelining for maximum throughput
- ✓Works with Redis, KeyDB, Dragonfly, Valkey — one client
Example
Minimal usage example — copy-paste runnable after install.
amc package add redis
let r = Redis.Connect("localhost:6379")
r.Set("user:42", "Alice")
let name = r.Get("user:42") // "Alice"
r.Expire("user:42", 3600) // 1h TTL
At a glance
- License: Apache-2.0
- Install:
amc package add redis - Source: amalgame-lang/amalgame-database-redis
- Official index: amalgame-lang/packages-index