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)