摘要: redis是一个支持持久化的内存数据库,也就是说redis需要经常将内存中的数据同步到磁盘来保证持久化。redis支持四种持久化方式,一是 Snapshotting(快照)也是默认方式;二是Append-only file(缩写aof)的方式;三是虚拟内存方式;四是diskstore方式。后两种方式 阅读全文
posted @ 2018-05-29 23:34 yifanSJ 阅读(153) 评论(0) 推荐(0) 编辑
摘要: # Redis configuration file example. # # Note that in order to read the configuration file, Redis must be # started with the file path as first argumen 阅读全文
posted @ 2018-05-29 23:09 yifanSJ 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 概述 Redis的键值可以使用物种数据类型:字符串,散列表,列表,集合,有序集合。本文详细介绍这五种数据类型的使用方法。本文命令介绍部分只是列举了基本的命令,至于具体的使用示例,可以参考Redis官方文档:Redis命令大全 字符串类型 字符串是Redis中最基本的数据类型,它能够存储任何类型的字符 阅读全文
posted @ 2018-05-29 17:21 yifanSJ 阅读(180) 评论(0) 推荐(0) 编辑