Skip to main content

get_json

Function get_json 

Source
pub async fn get_json(redis: &RedisCache, key: &str) -> Option<Arc<Vec<u8>>>
Expand description

Redis 读取:命中返回响应 JSON 字节。

§参数

  • redis: Redis 缓存客户端
  • key: 逻辑缓存键

§返回

  • Some(bytes): Redis 命中
  • None: Redis 未命中或读取失败