mirror of https://github.com/dunwu/db-tutorial.git
docs: 更新文档错误
parent
e551e3019c
commit
48bdd8da1b
|
@ -74,7 +74,7 @@
|
||||||
127.0.0.1:6379> set hello world
|
127.0.0.1:6379> set hello world
|
||||||
OK
|
OK
|
||||||
127.0.0.1:6379> get hello
|
127.0.0.1:6379> get hello
|
||||||
"jack"
|
"world"
|
||||||
127.0.0.1:6379> del hello
|
127.0.0.1:6379> del hello
|
||||||
(integer) 1
|
(integer) 1
|
||||||
127.0.0.1:6379> get hello
|
127.0.0.1:6379> get hello
|
||||||
|
@ -270,9 +270,9 @@ OK
|
||||||
|
|
||||||
Redis 的 `SORT` 命令可以对 `LIST`、`SET`、`ZSET` 进行排序。
|
Redis 的 `SORT` 命令可以对 `LIST`、`SET`、`ZSET` 进行排序。
|
||||||
|
|
||||||
| 命令 | 描述 |
|
| 命令 | 描述 |
|
||||||
| ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| ------ | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
|
||||||
| `SORT` | `SORT source-key [BY pattern] [LIMIT offset count] [GET pattern [GET pattern ...]] [ASC|DESC] [ALPHA] [STORE dest-key]`—根据给定选项,对输入 `LIST`、`SET`、`ZSET` 进行排序,然后返回或存储排序的结果。 |
|
| `SORT` | `SORT source-key [BY pattern] [LIMIT offset count] [GET pattern [GET pattern ...]] [ASC | DESC] [ALPHA] [STORE dest-key]`—根据给定选项,对输入 `LIST`、`SET`、`ZSET` 进行排序,然后返回或存储排序的结果。 |
|
||||||
|
|
||||||
示例:
|
示例:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue