You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
716 B

1 month ago
---
kind: external_dependency
name: Redis 缓存与会话存储
slug: redis
category: external_dependency
category_hints:
- vendor_identity
scope:
- '**'
---
### Redis 缓存服务
- 角色:JWT 会话存储、上传会话管理、部门树缓存等
- 集成点:`crm-base` 提供 RedisTemplate 配置(key: String 序列化,value: JSON 序列化带类型);连接配置 `spring.data.redis.*`
- 使用模式:JWT token 双重校验(签名 + Redis 存在性检查);分片上传会话以 uploadId 为 key 存储;部门树进程内缓存(Caffeine)+ Redis 分布式缓存
- 命名规范:`crm:{模块}:{业务}:{标识}` 三段式 key 命名
- verify exact API/params against official docs