shikeyin
2024-01-11 65da8373531677b1c37a98f53eaa30c892f35e5a
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
61
62
63
64
65
66
67
68
69
package com.iplatform.base.util.cache;
 
import com.walker.infrastructure.utils.StringUtils;
 
/**
 * 前端显示的缓存信息。
 * @date 2023-01-04
 */
public class CacheInfo {
 
    /** 缓存名称 */
    private String cacheName = StringUtils.EMPTY_STRING;
 
    /** 缓存键名 */
    private String cacheKey = StringUtils.EMPTY_STRING;
 
    /** 缓存内容 */
    private String cacheValue = StringUtils.EMPTY_STRING;
 
    /** 备注 */
    private String remark = StringUtils.EMPTY_STRING;
 
    public CacheInfo() {}
 
    public CacheInfo(String cacheName, String remark) {
        this.cacheName = cacheName;
        this.remark = remark;
    }
 
    public CacheInfo(String cacheName, String cacheKey, String cacheValue) {
//        this.cacheName = StringUtils.replace(cacheName, ":", "");
//        this.cacheKey = StringUtils.replace(cacheKey, cacheName, "");
        this.cacheName = cacheName;
        this.cacheKey = cacheKey;
        this.cacheValue = cacheValue;
    }
 
    public String getCacheName() {
        return cacheName;
    }
 
    public void setCacheName(String cacheName) {
        this.cacheName = cacheName;
    }
 
    public String getCacheKey() {
        return cacheKey;
    }
 
    public void setCacheKey(String cacheKey) {
        this.cacheKey = cacheKey;
    }
 
    public String getCacheValue() {
        return cacheValue;
    }
 
    public void setCacheValue(String cacheValue) {
        this.cacheValue = cacheValue;
    }
 
    public String getRemark() {
        return remark;
    }
 
    public void setRemark(String remark) {
        this.remark = remark;
    }
}