From 988aaae9b696a47e3e3c927f84593e1ca8e0c7ab Mon Sep 17 00:00:00 2001 From: hbignlin Date: Mon, 19 Apr 2021 23:54:30 +0800 Subject: [PATCH] Update d-2-redis.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit hmset设置多值,hset只能设置单值 --- docs/d-2-redis.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/d-2-redis.md b/docs/d-2-redis.md index 0808d05..15172e3 100755 --- a/docs/d-2-redis.md +++ b/docs/d-2-redis.md @@ -225,7 +225,7 @@ OK 下面我们简单看看它的使用! ```bash -127.0.0.1:6379> hset userInfoKey name "guide" description "dev" age "24" +127.0.0.1:6379> hmset userInfoKey name "guide" description "dev" age "24" OK 127.0.0.1:6379> hexists userInfoKey name # 查看 key 对应的 value中指定的字段是否存在。 (integer) 1 @@ -677,4 +677,4 @@ Cache Aside Pattern 中遇到写请求是这样的:更新 DB,然后直接删 * 《Redis 设计与实现》 * Redis 命令总结:http://Redisdoc.com/string/set.html * 通俗易懂的 Redis 数据结构基础教程:[https://juejin.im/post/5b53ee7e5188251aaa2d2e16](https://juejin.im/post/5b53ee7e5188251aaa2d2e16) -* WHY Redis choose single thread (vs multi threads): [https://medium.com/@jychen7/sharing-redis-single-thread-vs-multi-threads-5870bd44d153](https://medium.com/@jychen7/sharing-redis-single-thread-vs-multi-threads-5870bd44d153) \ No newline at end of file +* WHY Redis choose single thread (vs multi threads): [https://medium.com/@jychen7/sharing-redis-single-thread-vs-multi-threads-5870bd44d153](https://medium.com/@jychen7/sharing-redis-single-thread-vs-multi-threads-5870bd44d153)