Disponible
amalgame-redis
Client RESP2 pur, sans lib vendored. Compatible KeyDB / Dragonfly / Valkey.
Vue d'ensemble
Implémentation pure-AM du protocole RESP2 directement sur TCP brut. Aucune lib C vendored, aucune dépendance système. Compatible avec Redis, KeyDB, Dragonfly, Valkey et tout serveur qui parle RESP2.
Caractéristiques
- ✓Protocole RESP2 pur en Amalgame, pas de binding C
- ✓API
Get/Set/Del/Incr/Expire - ✓Support pub/sub (Subscribe / Publish)
- ✓Pipelining pour throughput maximal
- ✓Compatible Redis, KeyDB, Dragonfly, Valkey — un seul client
Exemple
Exemple minimal d'utilisation — recopiable tel quel après l'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) // TTL 1h
En bref
- Licence : Apache-2.0
- Installation :
amc package add redis - Code source : amalgame-lang/amalgame-database-redis
- Index officiel : amalgame-lang/packages-index