package com.fzzy.api.utils; import com.fzzy.api.Constant; /** * Redis缓存使用的系统常量配置 主要用于配置系统缓存的KEY配置 */ public class RedisConst { /** * 字典表缓存 */ public static String KYE_LIST_TRIGGER = "LIST_TRIGGER"; /** * 设备缓存 */ public static String KYE_GATE_DEVICE = "G_DEVICE"; /** * 接口配置-单个数据单个KEY */ public static String KYE_CONF = "CONF"; /** * 接口配置-TOKEN */ public static String KYE_TOKEN = "TOKEN"; /** * 指令ID-ORDER */ public static String KYE_ORDER = "ORDER"; /** * 根据组织编码构建实际使用的KEY *

* 组织编码 * * @param key1 缓存KEY * @return */ public static String buildKey(String key1) { return Constant.APP_NAME + ":" + key1; } /** * 根据组织编码构建实际使用的KEY * * @return */ public static String buildKey(String key1, String key2) { return Constant.APP_NAME + ":" + key1 + ":" + key2; } /** * 根据组织编码构建实际使用的KEY * * @return */ public static String buildKey(String key1, String key2, String key3) { return Constant.APP_NAME + ":" + key1 + ":" + key2 + ":" + key3; } }