首页>代码>springside的showcase>/showcase/src/main/java/org/springside/examples/showcase/demos/cache/memcached/MemcachedObjectType.java
package org.springside.examples.showcase.demos.cache.memcached; /** * 统一定义Memcached中存储的各种对象的Key前缀和超时时间. * * @see org.springside.examples.showcase.service.AccountService#getInitializedUser(String) * * @author calvin */ public enum MemcachedObjectType { USER("user:", 60 * 60 * 1); private String prefix; private int expiredTime; MemcachedObjectType(String prefix, int expiredTime) { this.prefix = prefix; this.expiredTime = expiredTime; } public String getPrefix() { return prefix; } public int getExpiredTime() { return expiredTime; } }
最近下载更多
bannerwang LV2
2018年10月30日
wkc LV21
2018年5月13日
dachoumomo LV12
2018年2月2日
yhlcrl LV1
2016年3月10日
微微上翘 LV23
2015年11月30日
zzlsrj LV10
2015年3月14日
骑着猪猪去逛街 LV32
2013年12月27日
pauldu1104 LV1
2013年7月14日
jaodge LV1
2013年6月24日
cxw LV1
2013年5月15日
最近浏览更多
酒瓯224656565
2019年10月14日
暂无贡献等级
shuiyizq LV5
2019年7月30日
chengqiang LV13
2019年5月28日
bannerwang LV2
2018年10月30日
wkc LV21
2018年5月13日
dachoumomo LV12
2018年2月2日
zyl LV34
2017年10月23日
sdomysky1234 LV6
2017年2月28日
xianggang LV1
2017年1月8日
danelumax
2016年12月20日
暂无贡献等级