{"id":17035402,"url":"https://github.com/hhxsv5/redis-memory-analysis","last_synced_at":"2025-04-12T12:32:24.939Z","repository":{"id":56984243,"uuid":"110522787","full_name":"hhxsv5/redis-memory-analysis","owner":"hhxsv5","description":"🔎 Analyzing memory of redis is to find the keys(prefix) which used a lot of memory, export the analysis result into csv file. ","archived":false,"fork":false,"pushed_at":"2018-02-25T13:15:57.000Z","size":196,"stargazers_count":32,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-03-29T22:03:47.296Z","etag":null,"topics":["analysis","export-csvfile","memory","occupancy","redis","usage"],"latest_commit_sha":null,"homepage":"http://blog.sina.com.cn/s/blog_9bbafb790102x2sd.html","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hhxsv5.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}},"created_at":"2017-11-13T08:47:27.000Z","updated_at":"2023-01-13T09:06:46.000Z","dependencies_parsed_at":"2022-08-21T09:10:25.184Z","dependency_job_id":null,"html_url":"https://github.com/hhxsv5/redis-memory-analysis","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hhxsv5%2Fredis-memory-analysis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hhxsv5%2Fredis-memory-analysis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hhxsv5%2Fredis-memory-analysis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hhxsv5%2Fredis-memory-analysis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hhxsv5","download_url":"https://codeload.github.com/hhxsv5/redis-memory-analysis/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219847593,"owners_count":16556351,"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":["analysis","export-csvfile","memory","occupancy","redis","usage"],"created_at":"2024-10-14T08:46:46.713Z","updated_at":"2024-10-14T08:46:46.784Z","avatar_url":"https://github.com/hhxsv5.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Redis memory analysis\n======\n\n🔎 Analyzing memory of redis is to find the keys(prefix) which used a lot of memory, export the analysis result into csv file.\n\n## Requirements\n\n* PHP 5.4 or later\n* ext-redis \u003e=2.2.8\n* predis/predis ~1.1.0\n\n## Installation via Composer([packagist](https://packagist.org/packages/hhxsv5/redis-memory-analysis))\n\n```BASH\ncomposer require \"hhxsv5/redis-memory-analysis:~1.0\" -vvv\n```\n\n## Usage\n### Run demo\n\n```PHP\ninclude '../vendor/autoload.php';\n\nuse Hhxsv5\\RMA\\AnalyzeRedis;\n\n$analyze = new AnalyzeRedis('127.0.0.1', 6379, '123456');\n\n//Scan the keys which can be split by '#' ':'\n//special pattern characters need to escape by '\\'\n$analyze-\u003estart(['#', ':']);\n\n//Find the csv file in default target folder: ./reports\n//CSV file name format: redis-analysis-{host}-{port}-{db}.csv\n//The keys order by count desc\n$analyze-\u003esaveReport();\n```\n\n![CSV](https://raw.githubusercontent.com/hhxsv5/redis-memory-analysis/master/examples/demo.png)\n\n\n## License\n\n[MIT](https://github.com/hhxsv5/redis-memory-analysis/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhhxsv5%2Fredis-memory-analysis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhhxsv5%2Fredis-memory-analysis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhhxsv5%2Fredis-memory-analysis/lists"}