rig-redis 0.1.0

Redis support utilities for Rig integrations.
Documentation
  • Coverage
  • 100%
    12 out of 12 items documented0 out of 11 items with examples
  • Size
  • Source code size: 6.27 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 410.38 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • 0xPlaygrounds/rig
    7928 884 50
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • gold-silver-copper

rig-redis

Redis support utilities for Rig integrations.

This crate currently provides lightweight configuration and key-building types that can be shared by future Redis-backed Rig providers, caches, and vector stores without forcing a specific Redis client runtime.

Example

use rig_redis::{RedisConfig, RedisKey};

let config = RedisConfig::new("redis://127.0.0.1:6379")
    .with_namespace("rig")
    .with_index("documents");

let key = RedisKey::new(config.namespace(), "chunk:42");

assert_eq!(config.index(), "documents");
assert_eq!(key.as_str(), "rig:chunk:42");