xiangpei
2024-11-21 83517d5e0faccda547e4d493002f4138c95f9141
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
package com.hnct.system.domain;
 
import com.hnct.common.utils.StringUtils;
import lombok.Data;
 
/**
 * 缓存信息
 *
 * @author ruoyi
 */
@Data
public class SysCache {
 
    /** 缓存名称 */
    private String cacheName = "";
 
    /** 缓存键名 */
    private String cacheKey = "";
 
    /** 缓存内容 */
    private String cacheValue = "";
 
    /** 备注 */
    private String remark = "";
 
    public SysCache(String cacheName, String remark)
    {
        this.cacheName = cacheName;
        this.remark = remark;
    }
 
    public SysCache(String cacheName, String cacheKey, String cacheValue)
    {
        this.cacheName = StringUtils.replace(cacheName, ":", "");
        this.cacheKey = StringUtils.replace(cacheKey, cacheName, "");
        this.cacheValue = cacheValue;
    }
 
}