{"id":17658472,"url":"https://github.com/hanke0/redis-xkeys","last_synced_at":"2026-05-09T16:17:53.117Z","repository":{"id":65199759,"uuid":"379940453","full_name":"hanke0/redis-xkeys","owner":"hanke0","description":"Redis command cli tool for reporting redis-server key statistics.","archived":false,"fork":false,"pushed_at":"2024-02-20T04:55:24.000Z","size":52,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T06:34:36.084Z","etag":null,"topics":["cli","redis"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hanke0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-24T13:49:49.000Z","updated_at":"2023-06-13T08:18:05.000Z","dependencies_parsed_at":"2024-01-20T04:14:17.774Z","dependency_job_id":"c3377dd3-d992-4146-8f8c-a397191fcbb9","html_url":"https://github.com/hanke0/redis-xkeys","commit_stats":{"total_commits":15,"total_committers":2,"mean_commits":7.5,"dds":0.4666666666666667,"last_synced_commit":"367b530c70912647487817f300b3058095af647b"},"previous_names":["ko-han/redis-xkeys","ko-han/redis-key-stats"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/hanke0/redis-xkeys","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanke0%2Fredis-xkeys","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanke0%2Fredis-xkeys/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanke0%2Fredis-xkeys/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanke0%2Fredis-xkeys/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hanke0","download_url":"https://codeload.github.com/hanke0/redis-xkeys/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanke0%2Fredis-xkeys/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280424212,"owners_count":26328462,"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","status":"online","status_checked_at":"2025-10-22T02:00:06.515Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cli","redis"],"created_at":"2024-10-23T15:06:26.063Z","updated_at":"2025-10-22T10:49:39.962Z","avatar_url":"https://github.com/hanke0.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# redis-xkeys\nA command line tools for statistic of redis keys based on scan command\n\n\n## How to get\n\n`go install github.com/hanke0/redis-xkeys@latest`\nor download release page binary files.\n\n## Example\n```bash\n» redis-cli set group_name value\nOK\n» redis-xkeys 0 group '^(.+)_(.+)$' '$1'\n# Basic\nstart_at: 2022-05-17 19:26:53.846204147 +0800 CST m=+0.001160364\ntotal_spend_time: 1.225106ms\ntotal_scan_keys: 1\navg_key_size: 10\nmax_key_size: 10\nlast_cursor: 0\n\n# Group ^(.+)_(.+)$ $1\ngroup 1\n\u003cnot-matched\u003e 0\n\n» redis-xkeys --help\nredis-xkeys 0.5.0\n\nredis-xkeys scans all redis keys and prints a briefing.\n\nUsage: redis-xkeys [OPTIONS] cursor [MATCH pattern] [COUNT count] [TYPE type] \n                   [GROUP pattern replacement] [GROUPTYPE] [LIMIT limit]\n                   [DISTINCT pattern]\n  -a \u003cpassword\u003e Password to use when connecting to the server.\n  -b    Start in batch mode, which could be useful for send output\n                to other programs or to a file (default disable when STDOUT\n                is not a tty).\n  -h \u003chostname\u003e Server hostname (default:127.0.0.1).\n  --help        Output this help and exit.\n  -i \u003cinterval\u003e Waits \u003cinterval\u003e seconds per scan. It is possible\n                to specify sub-second times like -i 0.1.\n  -n \u003cdb\u003e       Database number.\n  -p \u003cport\u003e     Server port (default:6379).\n  --retry-times \u003cretrytimes\u003e    Retry times per scan when scan fails.\n  --timeout \u003ctimeout\u003e   Timeout in seconds for redis command (default:1).\n  -u \u003cinterval\u003e Update result every \u003cinterval\u003e seconds (default:3).\n\nThe Match option\nAs same as redis scan match option.\n\nThe COUNT option\nAs same as redis scan count option.\n\nThe TYPE option\nAs same as redis scan type option. A type call to every key if redis-server \ndo  not support type option.\n\nThe GROUP option\nIt uses an regex pattern to match and classify keys into groups.\nRegex sub-group matches could get by ${groupname} or ${groupindex}.\nIt possible to add more than one groups.\n\nThe GROUPTYPE option\nIt prints keys count as they are grouped by their type.\n\nThe LIMIT option\nIterate at this most keys. If not set, xcan will iter all keys stored in redis server.\n\nThe DISTINCT option\nIt uses an regex pattern to match keys, increases count by one if matched.\nBoth matched count and un-matched count will be reported.\nIt possible to add more than one DISTINCT option.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanke0%2Fredis-xkeys","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhanke0%2Fredis-xkeys","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanke0%2Fredis-xkeys/lists"}