WS
2023-08-23 4b7eb0c1ff7bed6cdfdf19b19b992efa943aee6e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
package com.fzzy.api.utils;
 
import com.fzzy.api.Constant;
 
/**
 * Redis缓存使用的系统常量配置 主要用于配置系统缓存的KEY配置
 */
public class RedisConst {
 
 
    /**
     * 字典表缓存
     */
    public static String KYE_LIST_TRIGGER = "LIST_TRIGGER";
 
 
    /**
     * 接口配置-单个数据单个KEY
     */
    public static String KYE_CONF = "CONF";
 
    /**
     * 接口配置-TOKEN
     */
    public static String KYE_TOKEN = "TOKEN";
 
 
 
 
    /**
     * 根据组织编码构建实际使用的KEY
     * <p>
     * 组织编码
     *
     * @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;
    }
 
}