ciallo-redis-plugin

    Lightweight Web bridge for unmbt/ciallo-redis (RedisKvStore + CapabilityBundle with /readyz PING & Lifecycle)

    redis
    kv
    plugin
    bundle
    ciallo
    Download zip
    Author
    Version
    0.1.1
    License
    MIT
    Last updated
    13 hours ago
    Downloads
    8

    #unmbt/ciallo-redis-plugin

    Lightweight Web framework bridge connecting unmbt/ciallo-redis to unmbt/ciallo (RedisKvStore implementing @runtime.KvStore + CapabilityBundle with /readyz PING & Lifecycle).

    RedisKvStore

    pub struct RedisKvStore {
    client :
    RedisClient

    namespace_prefix : String
    }

    将 unmbt/ciallo-redis 无缝桥接为 unmbt/ciallo/runtime::KvStore(本地 MemoryKv <-> 生产 Redis 一键切换)

    RedisKvStore::RedisKvStore

    fn RedisKvStore::RedisKvStore(client :
    RedisClient
    , namespace_prefix? : String) -> RedisKvStore

    bundle_client

    fn bundle_client(client :
    RedisClient
    , name? : String, seed? : String, namespace_prefix? : String) -> &
    CapabilityBundle

    一键 Redis Web 能力包:挂载 redis_key + kv_key Provider、/readyz PING 探针与 on_stop 优雅关闭

    kv_key

    强类型 KvStore 依赖注入键

    redis_key

    强类型 Redis 客户端依赖注入键(供 CapabilityBundle 注册并在 Handler 中 ctx.state(redis_key) 获取)

    Source Files