提交 | 用户 | 时间
|
fd2207
|
1 |
package com.jcdm.system.domain; |
懒 |
2 |
|
|
3 |
import com.jcdm.common.utils.StringUtils; |
|
4 |
|
|
5 |
/** |
|
6 |
* 缓存信息 |
|
7 |
* |
|
8 |
* @author jc |
|
9 |
*/ |
|
10 |
public class SysCache |
|
11 |
{ |
|
12 |
/** 缓存名称 */ |
|
13 |
private String cacheName = ""; |
|
14 |
|
|
15 |
/** 缓存键名 */ |
|
16 |
private String cacheKey = ""; |
|
17 |
|
|
18 |
/** 缓存内容 */ |
|
19 |
private String cacheValue = ""; |
|
20 |
|
|
21 |
/** 备注 */ |
|
22 |
private String remark = ""; |
|
23 |
|
|
24 |
public SysCache() |
|
25 |
{ |
|
26 |
|
|
27 |
} |
|
28 |
|
|
29 |
public SysCache(String cacheName, String remark) |
|
30 |
{ |
|
31 |
this.cacheName = cacheName; |
|
32 |
this.remark = remark; |
|
33 |
} |
|
34 |
|
|
35 |
public SysCache(String cacheName, String cacheKey, String cacheValue) |
|
36 |
{ |
|
37 |
this.cacheName = StringUtils.replace(cacheName, ":", ""); |
|
38 |
this.cacheKey = StringUtils.replace(cacheKey, cacheName, ""); |
|
39 |
this.cacheValue = cacheValue; |
|
40 |
} |
|
41 |
|
|
42 |
public String getCacheName() |
|
43 |
{ |
|
44 |
return cacheName; |
|
45 |
} |
|
46 |
|
|
47 |
public void setCacheName(String cacheName) |
|
48 |
{ |
|
49 |
this.cacheName = cacheName; |
|
50 |
} |
|
51 |
|
|
52 |
public String getCacheKey() |
|
53 |
{ |
|
54 |
return cacheKey; |
|
55 |
} |
|
56 |
|
|
57 |
public void setCacheKey(String cacheKey) |
|
58 |
{ |
|
59 |
this.cacheKey = cacheKey; |
|
60 |
} |
|
61 |
|
|
62 |
public String getCacheValue() |
|
63 |
{ |
|
64 |
return cacheValue; |
|
65 |
} |
|
66 |
|
|
67 |
public void setCacheValue(String cacheValue) |
|
68 |
{ |
|
69 |
this.cacheValue = cacheValue; |
|
70 |
} |
|
71 |
|
|
72 |
public String getRemark() |
|
73 |
{ |
|
74 |
return remark; |
|
75 |
} |
|
76 |
|
|
77 |
public void setRemark(String remark) |
|
78 |
{ |
|
79 |
this.remark = remark; |
|
80 |
} |
|
81 |
} |