摘要: public class Bean { public Bean() { } public static String Current { get { if (guid == null) guid = Guid.NewGuid().ToString(); return guid; } } public 阅读全文
posted @ 2016-02-21 22:20 wujf 阅读(314) 评论(1) 推荐(0) 编辑
摘要: redis 中的默认的过期策略是volatile-lru 。设置方式 config set maxmemory-policy volatile-lru maxmemory-policy 六种方式 volatile-lru:只对设置了过期时间的key进行LRU(默认值) allkeys-lru : 删 阅读全文
posted @ 2016-02-21 20:48 wujf 阅读(1186) 评论(0) 推荐(0) 编辑