{"id":18654674,"url":"https://github.com/juampi92/artisan-cache-debug","last_synced_at":"2025-04-11T17:31:33.878Z","repository":{"id":58883934,"uuid":"532084364","full_name":"juampi92/artisan-cache-debug","owner":"juampi92","description":"Simple artisan command to debug your redis cache. Requires PHP 8.1 \u0026 Laravel 9","archived":false,"fork":false,"pushed_at":"2023-10-09T10:35:38.000Z","size":201,"stargazers_count":18,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T03:04:59.949Z","etag":null,"topics":["cache","debug","laravel","php","redis"],"latest_commit_sha":null,"homepage":"","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/juampi92.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2022-09-02T21:29:38.000Z","updated_at":"2024-02-28T17:46:46.000Z","dependencies_parsed_at":"2025-03-04T21:40:48.994Z","dependency_job_id":null,"html_url":"https://github.com/juampi92/artisan-cache-debug","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":"spatie/package-skeleton-laravel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juampi92%2Fartisan-cache-debug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juampi92%2Fartisan-cache-debug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juampi92%2Fartisan-cache-debug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juampi92%2Fartisan-cache-debug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juampi92","download_url":"https://codeload.github.com/juampi92/artisan-cache-debug/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248449764,"owners_count":21105558,"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":["cache","debug","laravel","php","redis"],"created_at":"2024-11-07T07:16:10.784Z","updated_at":"2025-04-11T17:31:28.865Z","avatar_url":"https://github.com/juampi92.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🔎 `php artisan cache:debug`\n## Simple artisan command to debug your redis cache\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"/art/preview.png\" width=\"882\" alt=\"\"\u003e\n  \u003cp align=\"center\"\u003e\n    \u003ca href=\"https://packagist.org/packages/juampi92/artisan-cache-debug\"\u003e\u003cimg src=\"https://img.shields.io/packagist/v/juampi92/artisan-cache-debug.svg?style=flat-square\" alt=\"Latest Version on Packagist\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/juampi92/artisan-cache-debug/actions?query=workflow%3Arun-tests+branch%3Amain\"\u003e\u003cimg src=\"https://img.shields.io/github/workflow/status/juampi92/artisan-cache-debug/run-tests?label=tests\" alt=\"GitHub Tests Action Status\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/juampi92/artisan-cache-debug/actions?query=workflow%3A'Fix+PHP+code+style+issues'+branch%3Amain\"\u003e\u003cimg src=\"https://img.shields.io/github/workflow/status/juampi92/artisan-cache-debug/Fix%20PHP%20code%20style%20issues?label=code%20style\" alt=\"GitHub Code Style Action Status\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://packagist.org/packages/juampi92/artisan-cache-debug\"\u003e\u003cimg src=\"https://img.shields.io/packagist/dt/juampi92/artisan-cache-debug.svg?style=flat-square\" alt=\"Total Downloads\"\u003e\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/p\u003e\n\n## 🚀 Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require juampi92/artisan-cache-debug --dev\n```\n\n\u003e If you would like to debug the cache in production, you can install it without the `--dev` flag.\n\n## Usage\n\nThe simplest usage:\n```php\nphp artisan cache:debug\n```\n\n### Options\n\n| Option / Flag                  | Description                                                                                                                            |\n|--------------------------------|----------------------------------------------------------------------------------------------------------------------------------------|\n| `--key=*`                      | Will filter the keys. Can use wildcard. Example: `--key=*:translations`. [Read more](https://redis.io/commands/scan/#the-match-option) |\n| `--heavier-than[=HEAVIER-THAN]` | Will hide keys lighter than X. Use a format like `10bytes`, `1kb`, `8b`                                                                |\n| `--sort-by[=SORT-BY]`          | Will sort the keys by `size` or `key`. *[default: \"size\"]*                                                                             |\n| `--sort-dir[=SORT-DIR]`        | Set the sorting direction: `asc` or `desc`.                                                                                            |\n| `--forever`                    | Will **only** show non-expiring keys.                                                                                                  |\n| `--with-details`               | Show the type of every cache record.                                                                                                   |\n| `--store=`                     | In case you want to debug a cache store other than the default.                                                                        |\n\n## Testing\n\n```bash\nsail up -d\ncomposer test\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n### To-do\n\nSome ideas to expand this package:\n\n- [ ] Pagination\n- [ ] Filter on type\n- [ ] Display the TTL (currently can't make it fit in the results)\n- [ ] Support memcache?\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n\n## Security Vulnerabilities\n\nPlease review [our security policy](../../security/policy) on how to report security vulnerabilities.\n\n## Credits\n\n- [Juan Pablo Barreto](https://github.com/juampi92)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuampi92%2Fartisan-cache-debug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuampi92%2Fartisan-cache-debug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuampi92%2Fartisan-cache-debug/lists"}