{"id":19747754,"url":"https://github.com/fetlife/redis-analyzer","last_synced_at":"2025-09-21T06:34:26.632Z","repository":{"id":57658951,"uuid":"196480148","full_name":"fetlife/redis-analyzer","owner":"fetlife","description":"Redis Memory Analyzer written in Rust","archived":false,"fork":false,"pushed_at":"2022-09-02T09:20:25.000Z","size":413,"stargazers_count":126,"open_issues_count":4,"forks_count":7,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-08-04T08:37:11.219Z","etag":null,"topics":["memory-analyzer","redis","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/fetlife.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-07-12T00:08:27.000Z","updated_at":"2025-07-31T13:04:35.000Z","dependencies_parsed_at":"2022-08-29T11:30:53.814Z","dependency_job_id":null,"html_url":"https://github.com/fetlife/redis-analyzer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fetlife/redis-analyzer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fetlife%2Fredis-analyzer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fetlife%2Fredis-analyzer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fetlife%2Fredis-analyzer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fetlife%2Fredis-analyzer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fetlife","download_url":"https://codeload.github.com/fetlife/redis-analyzer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fetlife%2Fredis-analyzer/sbom","scorecard":{"id":397859,"data":{"date":"2025-08-11","repo":{"name":"github.com/fetlife/redis-analyzer","commit":"eac623adab34251ceb98016246bae828f5fca83f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.8,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":4,"reason":"6 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: RUSTSEC-2021-0139","Warn: Project is vulnerable to: RUSTSEC-2021-0145 / GHSA-g98v-hv3f-hcfr","Warn: Project is vulnerable to: RUSTSEC-2024-0375","Warn: Project is vulnerable to: RUSTSEC-2024-0421 / GHSA-h97m-ww89-6jmq","Warn: Project is vulnerable to: RUSTSEC-2018-0006 / GHSA-hv87-47h9-jcvq","Warn: Project is vulnerable to: RUSTSEC-2024-0320"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T19:26:28.321Z","repository_id":57658951,"created_at":"2025-08-18T19:26:28.321Z","updated_at":"2025-08-18T19:26:28.321Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276204823,"owners_count":25602738,"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-09-21T02:00:07.055Z","response_time":72,"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":["memory-analyzer","redis","rust"],"created_at":"2024-11-12T02:18:48.355Z","updated_at":"2025-09-21T06:34:26.564Z","avatar_url":"https://github.com/fetlife.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Redis Analyzer\n\nConsole tool to scan keys in Redis database in real time and aggregate count and memory usage statistics by key prefixes.\n\nFeatures:\n\n* Keys count and memory usage statistics\n* Concurrent scanning of multiple Redis databases\n* Low memory signature\n* Fast (scans instances with dozens of millions of keys in few minutes)\n\n## Motivation\n\nThere are already good tools out there doing similar job with even more features:\n\n* [redis-memory-analyzer](https://github.com/gamenet/redis-memory-analyzer)\n* [redis-audit](https://github.com/snmaynard/redis-audit)\n\nBut using them on big Redis databases with millions of keys is not viable because of memory requirements and time it takes to complete the full scan.\n\n## Installation\n\nYou'll need rust and cargo. See [here](https://doc.rust-lang.org/cargo/getting-started/installation.html) for instructions on how to get them.\n\nThen you can just run `cargo install redis-analyzer` to install it.\n\nAlternatively, to build it yourself, clone the repository and run `cargo build --release`.\n\n## Usage\n\n```text\n# redis-analyzer --help\n\nredis-analyzer 0.2.0\nAnalyzes keys in Redis to produce breakdown of the most frequent prefixes.\n\nUSAGE:\n    redis-analyzer [FLAGS] [OPTIONS] --urls \u003cURL1,URL2\u003e\n\nFLAGS:\n        --full-keys    Shows full keys in result instead of just suffixes.\n    -h, --help         Prints help information\n        --progress     Shows progress\n    -V, --version      Prints version information\n\nOPTIONS:\n    -c, --concurrency \u003cCONCURRENCY\u003e\n            Maximum number of hosts scanned at the same time. [default: number of logical CPUs]\n\n    -d, --depth \u003cDEPTH\u003e                                         Maximum key depth to examine.\n    -f, --format \u003cplain|json\u003e                                   Output format. (default: plain)\n        --min-count-percentage \u003cMIN_PREFIX_COUNT_PERCENTAGE\u003e\n            Minimum prefix frequency in percentages for prefix to be included in the result. [default: 1.0]\n\n        --order \u003ccount|memory\u003e                                  Sort order. [default: memory]\n        --scan-size \u003cSCAN_SIZE\u003e\n            Configures how many keys are fetched at a time. [default: 100]\n\n    -s, --separators \u003cSEPARATORS\u003e                               List of key separators. [default: :/|]\n    -u, --urls \u003cURL1,URL2\u003e                                      List of URLs to scan.\n```\n\n## Examples\n\nExample output:\n\n```text\n$ redis-analyzer -u 127.0.0.1:6379/0,127.0.0.1:6379/2\nTook 976ms 142us\n                       Keys Count                     Memory Usage\nALL -------------------15155 (100.00%) --------------26.88MB (100.00%)\n├─ cache --------------├─ 294 (1.94%) ---------------├─ 2.04MB (7.60%)\n│  └─ Touchify --------│--└─ 239 (81.29%) -----------│--└─ 20.62KB (0.99%)\n│     └─ internal -----│-----└─ 239 (100.00%) -------│-----└─ 20.62KB (100.00%)\n│        └─ User ------│--------└─ 239 (100.00%) ----│--------└─ 20.62KB (100.00%)\n├─ feed ---------------├─ 158 (1.04%) ---------------├─ 1.60MB (5.97%)\n│  └─ feed ------------│--└─ 158 (100.00%) ----------│--└─ 1.60MB (100.00%)\n│     └─ feeds --------│-----└─ 155 (98.10%) --------│-----└─ 1.60MB (99.93%)\n├─ hovno --------------├─ 13808 (91.11%) ------------├─ 1.55MB (5.75%)\n├─ sidekiq ------------├─ 399 (2.63%) ---------------├─ 1.27MB (4.74%)\n│  └─ stat ------------│--└─ 388 (97.24%) -----------│--└─ 28.21KB (2.16%)\n│     ├─ processed ----│-----├─ 194 (50.00%) --------│-----├─ 14.58KB (51.68%)\n│     └─ failed -------│-----└─ 194 (50.00%) --------│-----└─ 13.63KB (48.32%)\n├─ stat ---------------├─ 176 (1.16%) ---------------├─ 11.24KB (0.04%)\n├─ counts -------------├─ 120 (0.79%) ---------------├─ 9.68KB (0.04%)\n└─ [other] ------------└─ 200 (1.32%) ---------------└─ 20.39MB (75.86%)\n```\n\n```text\n$ redis-analyzer -u 127.0.0.1:6379/0 -d 1\nTook 752ms 708us\n               Keys Count             Memory Usage\nALL -----------14971 (100.00%) ------7.29MB (100.00%)\n├─ cache ------├─ 294 (1.96%) -------├─ 2.04MB (28.02%)\n├─ feed -------├─ 158 (1.06%) -------├─ 1.60MB (22.00%)\n├─ hovno ------├─ 13808 (92.23%) ----├─ 1.55MB (21.19%)\n├─ sidekiq ----├─ 399 (2.67%) -------├─ 1.27MB (17.42%)\n├─ counts -----├─ 120 (0.80%) -------├─ 9.68KB (0.13%)\n└─ [other] ----└─ 192 (1.28%) -------└─ 840.05KB (11.25%)\n```\n\n```text\n$ redis-analyzer -u 127.0.0.1:6379/0 -d 2 --order count --full-keys\nTook 838ms 811us\n                         Keys Count               Memory Usage\nALL ---------------------14971 (100.00%) --------7.29MB (100.00%)\n├─ hovno ----------------├─ 13808 (92.23%) ------├─ 1.55MB (21.19%)\n├─ sidekiq --------------├─ 399 (2.67%) ---------├─ 1.27MB (17.42%)\n│  └─ sidekiq:stat ------│--└─ 388 (97.24%) -----│--└─ 28.21KB (2.17%)\n├─ cache ----------------├─ 294 (1.96%) ---------├─ 2.04MB (28.02%)\n│  └─ cache:Touchify ----│--└─ 239 (81.29%) -----│--└─ 20.62KB (0.99%)\n├─ feed -----------------├─ 158 (1.06%) ---------├─ 1.60MB (22.00%)\n│  └─ feed:feed ---------│--└─ 158 (100.00%) ----│--└─ 1.60MB (100.00%)\n├─ counts ---------------├─ 120 (0.80%) ---------├─ 9.68KB (0.13%)\n└─ [other] --------------└─ 192 (1.28%) ---------└─ 840.05KB (11.25%)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffetlife%2Fredis-analyzer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffetlife%2Fredis-analyzer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffetlife%2Fredis-analyzer/lists"}