taolib.testing.config_center.cache.keys#
Redis Key 命名规范模块。
提供 Redis Key 生成函数,确保命名一致性。
Functions#
|
生成配置值缓存 Key。 |
|
生成配置元数据缓存 Key。 |
|
生成服务配置列表缓存 Key。 |
|
生成用户角色缓存 Key。 |
|
生成配置缓存 Key 模式(用于批量删除)。 |
Module Contents#
- taolib.testing.config_center.cache.keys.config_key(environment: str, service: str, key: str) str#
生成配置值缓存 Key。
- 参数:
environment -- 环境类型
service -- 服务名称
key -- 配置键
- 返回:
Redis Key 字符串
- taolib.testing.config_center.cache.keys.config_meta_key(environment: str, service: str, key: str) str#
生成配置元数据缓存 Key。
- 参数:
environment -- 环境类型
service -- 服务名称
key -- 配置键
- 返回:
Redis Key 字符串
- taolib.testing.config_center.cache.keys.config_list_key(environment: str, service: str) str#
生成服务配置列表缓存 Key。
- 参数:
environment -- 环境类型
service -- 服务名称
- 返回:
Redis Key 字符串