摘要: public static Map<String,String> beanToMap(Object bean) { Map<String,String> params =Maps.newHashMap(); try { PropertyUtilsBean propertyUtilsBean = ne 阅读全文
posted @ 2017-04-12 16:48 陈东的博客 阅读(1125) 评论(0) 推荐(0)
摘要: redis的所有数据都是保存在内存中,然后不定期的通过异步方式保存到磁盘上(这称为“半持久化模式”);也可以把每一次数据变化都写入到一个append only file(aof)里面(这称为“全持久化模式”)。 第一种方法filesnapshotting(快照):默认redis是会以快照的形式将数据 阅读全文
posted @ 2017-04-12 16:31 陈东的博客 阅读(187) 评论(0) 推荐(0)