Available

amalgame-redis

Pure RESP2 client, no vendored lib. KeyDB/Dragonfly/Valkey compat.

amc package add redis GitHub ↗ ← Back to the ecosystem

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 / Expire API
  • 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

Related packages