Skip to main content
Module two_tier
tdm_
server_
rust
0.1.0
Module two_
tier
Module Items
Functions
In tdm_
server_
rust::
cache
tdm_server_rust
::
cache
Module
two_
tier
Copy item path
Source
Expand description
Redis JSON 缓存读写工具
列表/统计类预序列化 JSON 缓存统一走此处:
读:只查 Redis
写:只写 Redis,带 TTL
失效通过 Redis 删除精确键或匹配前缀完成,不再维护本地副本。
Functions
§
get_
json
Redis 读取:命中返回响应 JSON 字节。
set_
json
Redis 写入:只写响应 JSON 字节。