blazen-memory-valkey
A Valkey/Redis backend for [blazen-memory].
This crate provides [ValkeyBackend], an implementation of
MemoryBackend that persists entries in
Valkey (or Redis-compatible) using the following key layout:
| Key pattern | Type | Contents |
|---|---|---|
{prefix}entry:{id} |
STRING | JSON-serialized StoredEntry |
{prefix}bands:{band_value} |
SET | Entry IDs sharing this LSH band |
{prefix}ids |
SET | All entry IDs |
Quick start
use ValkeyBackend;
use ;
# async
Features
redis-tcp(default): native TCP [ValkeyBackend] using therediscrate. Does not compile onwasm32-wasip1*targets.upstash: wasi-compatible [UpstashBackend] that talks to Upstash's Redis REST API via [blazen_llm::http::HttpClient].