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