File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7474127.0.0.1:6379> set hello world
7575OK
7676127.0.0.1:6379> get hello
77- " jack "
77+ " world "
7878127.0.0.1:6379> del hello
7979(integer) 1
8080127.0.0.1:6379> get hello
270270
271271Redis 的 ` SORT ` 命令可以对 ` LIST ` 、` SET ` 、` ZSET ` 进行排序。
272272
273- | 命令 | 描述 |
274- | ------ | ---------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------- |
275- | ` SORT ` | `SORT source-key [ BY pattern] [ LIMIT offset count] [ GET pattern [ GET pattern ...]] [ ASC| DESC] [ ALPHA] [ STORE dest-key] ` —根据给定选项,对输入 ` LIST` 、 ` SET` 、 ` ZSET` 进行排序,然后返回或存储排序的结果。 |
273+ | 命令 | 描述 |
274+ | ------ | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
275+ | ` SORT ` | `SORT source-key [ BY pattern] [ LIMIT offset count] [ GET pattern [ GET pattern ...]] [ ASC | DESC] [ ALPHA] [ STORE dest-key] ` —根据给定选项,对输入 ` LIST` 、 ` SET` 、 ` ZSET` 进行排序,然后返回或存储排序的结果。 |
276276
277277示例:
278278
You can’t perform that action at this time.
0 commit comments