摘要: 》》》字符串 1 SET key value 设置指定 key 的值 2 GET key 获取指定 key 的值。 3 GETRANGE key start end 返回 key 中字符串值的子字符 4 GETSET key value将给定 key 的值设为 value ,并返回 key 的旧值( 阅读全文
posted @ 2018-03-28 22:23 striver_zhu 阅读(485) 评论(0) 推荐(0) 编辑
摘要: 1 DEL key该命令用于在 key 存在时删除 key。 2 DUMP key 序列化给定 key ,并返回被序列化的值。 3 EXISTS key 检查给定 key 是否存在。 4 EXPIRE key seconds为给定 key 设置过期时间。 5 EXPIREAT key timesta 阅读全文
posted @ 2018-03-28 22:13 striver_zhu 阅读(507) 评论(0) 推荐(0) 编辑
摘要: 参考: http://doc.redisfans.com/ http://www.runoob.com/redis/redis-commands.html Redis 命令 Redis 命令用于在 redis 服务上执行操作。 要在 redis 服务上执行命令需要一个 redis 客户端。Redis 阅读全文
posted @ 2018-03-28 22:09 striver_zhu 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 参考:http://www.runoob.com/redis/redis-data-types.html Redis支持五种数据类型:string(字符串),hash(哈希),list(列表),set(集合)及zset(sorted set:有序集合)。 String(字符串) string是red 阅读全文
posted @ 2018-03-28 22:06 striver_zhu 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 参考:http://www.runoob.com/redis/redis-conf.html Redis 的配置文件位于 Redis 安装目录下,文件名为 redis.conf。 查看配置 你可以通过 config 命令查看或设置配置项。 语法 Redis CONFIG 命令格式如下: 编辑配置 你 阅读全文
posted @ 2018-03-28 07:54 striver_zhu 阅读(194) 评论(0) 推荐(0) 编辑