{"id":18309398,"url":"https://github.com/masterjoyhunan/redisdocs","last_synced_at":"2025-04-09T11:40:25.061Z","repository":{"id":39952318,"uuid":"210972253","full_name":"MasterJoyHunan/redisDocs","owner":"MasterJoyHunan","description":"redis常用命令","archived":false,"fork":false,"pushed_at":"2022-05-20T21:13:02.000Z","size":315,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T05:30:27.051Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MasterJoyHunan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-26T01:23:58.000Z","updated_at":"2020-10-28T03:34:03.000Z","dependencies_parsed_at":"2022-09-15T14:51:34.926Z","dependency_job_id":null,"html_url":"https://github.com/MasterJoyHunan/redisDocs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MasterJoyHunan%2FredisDocs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MasterJoyHunan%2FredisDocs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MasterJoyHunan%2FredisDocs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MasterJoyHunan%2FredisDocs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MasterJoyHunan","download_url":"https://codeload.github.com/MasterJoyHunan/redisDocs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248032933,"owners_count":21036696,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T16:11:18.933Z","updated_at":"2025-04-09T11:40:25.035Z","avatar_url":"https://github.com/MasterJoyHunan.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Redis常用命令集合\r\n\r\n### [string](https://github.com/MasterJoyHunan/redisDocs/tree/master/string)\r\n\u003e 字符串\r\n### [list](https://github.com/MasterJoyHunan/redisDocs/tree/master/list)\r\n\u003e 列表\r\n### [set](https://github.com/MasterJoyHunan/redisDocs/tree/master/set)\r\n\u003e 集合\r\n### [zset](https://github.com/MasterJoyHunan/redisDocs/tree/master/zset)\r\n\u003e 有序集合\r\n### [hash](https://github.com/MasterJoyHunan/redisDocs/tree/master/hash)\r\n\u003e 散列\r\n### [publish/subscribe](https://github.com/MasterJoyHunan/redisDocs/tree/master/p_s)\r\n\u003e 发布、订阅\r\n### 通用命令\r\n* `del key` -- 删除\r\n* `type key` -- 查看某个键属于什么结构\r\n* `rename old_key new_key` -- 重命名键\r\n* `sort key [BY pattern] [LIMIT offset count] [GET pattern [GET pattern …]] [ASC | DESC] [ALPHA] [STORE destination]` -- 排序\r\n```\r\n    sort \r\n        key -- 对哪个集合进行排序\r\n        [BY pattern] -- 对其他键的元素作为权重，为 key 进行排序 * 表示占位符 *-\u003efield 表示在某个hash下面的field\r\n        [LIMIT offset count] -- 对返回进行限制\r\n        [GET pattern [GET pattern …]] -- 获取其他键的元素作为返回结果\r\n        [ASC | DESC] -- 升序，倒序\r\n        [ALPHA] -- 按字符串进行排序\r\n        [STORE destination] -- 将结果保存\r\n        \r\n```\r\n\r\n### 鸣谢\r\n\r\n特别感谢 [JetBrains](https://www.jetbrains.com/?from=redisDocs) 为本开源项目提供免费的 [IntelliJ GoLand](https://www.jetbrains.com/go/?from=redisDocs) 授权\r\n\r\n\u003cp\u003e\r\n \u003ca href=\"https://www.jetbrains.com/?from=redisDocs\"\u003e\r\n   \u003cimg height=\"200\" src=\"https://www.fdevops.com/wp-content/uploads/2020/09/1599213857-jetbrains-variant-4.png\"\u003e\r\n \u003c/a\u003e\r\n\u003c/p\u003e\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasterjoyhunan%2Fredisdocs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmasterjoyhunan%2Fredisdocs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasterjoyhunan%2Fredisdocs/lists"}