mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-28 04:59:52 +01:00
* update:更新版本号 * update:允许actions编译手动触发 * fix:如果获取不到版本号,actions编译失败 * add:增加docker部署redis步骤 * update:增加启用/关闭模型配置api * update:完成角色配色功能 * update:编译文档优化 * update:优化编译文档 * update:首页智能体面板显示优化
57 lines
1.2 KiB
Java
57 lines
1.2 KiB
Java
package xiaozhi.common.redis;
|
|
|
|
/**
|
|
* Redis Key 常量类
|
|
* Copyright (c) 人人开源 All rights reserved.
|
|
* Website: https://www.renren.io
|
|
*/
|
|
public class RedisKeys {
|
|
/**
|
|
* 系统参数Key
|
|
*/
|
|
public static String getSysParamsKey() {
|
|
return "sys:params";
|
|
}
|
|
|
|
/**
|
|
* 验证码Key
|
|
*/
|
|
public static String getCaptchaKey(String uuid) {
|
|
return "sys:captcha:" + uuid;
|
|
}
|
|
|
|
/**
|
|
* 未注册设备验证码Key
|
|
*/
|
|
public static String getDeviceCaptchaKey(String captcha) {
|
|
return "sys:device:captcha:" + captcha;
|
|
}
|
|
|
|
/**
|
|
* 用户id的Key
|
|
*/
|
|
public static String getUserIdKey(Long userid) {
|
|
return "sys:username:id:" + userid;
|
|
}
|
|
|
|
/**
|
|
* 模型名称的Key
|
|
*/
|
|
public static String getModelNameById(String id) {
|
|
return "sys:model:name:" + id;
|
|
}
|
|
|
|
/**
|
|
* 获取音色名称缓存key
|
|
*/
|
|
public static String getTimbreNameById(String id) {
|
|
return "timbre:name:" + id;
|
|
}
|
|
|
|
/**
|
|
* 获取设备数量缓存key
|
|
*/
|
|
public static String getAgentDeviceCountById(String id) {
|
|
return "agent:device:count:" + id;
|
|
}
|
|
}
|