PHPackages                             juampi92/artisan-cache-debug - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. juampi92/artisan-cache-debug

ActiveLibrary[Caching](/categories/caching)

juampi92/artisan-cache-debug
============================

Simple artisan command to debug your redis cache

v1.2(3y ago)176.8k[2 PRs](https://github.com/juampi92/artisan-cache-debug/pulls)MITPHPPHP ^8.1

Since Sep 8Pushed 2y ago1 watchersCompare

[ Source](https://github.com/juampi92/artisan-cache-debug)[ Packagist](https://packagist.org/packages/juampi92/artisan-cache-debug)[ Docs](https://github.com/juampi92/artisan-cache-debug)[ RSS](/packages/juampi92-artisan-cache-debug/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (15)Versions (6)Used By (0)

🔎 `php artisan cache:debug`
===========================

[](#-php-artisan-cachedebug)

Simple artisan command to debug your redis cache
------------------------------------------------

[](#simple-artisan-command-to-debug-your-redis-cache)

 [![](/art/preview.png)](/art/preview.png)

 [![Latest Version on Packagist](https://camo.githubusercontent.com/7f36906d1b76d123120532100e68e19726203b23673f3bbc0713603f387879b6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a75616d706939322f6172746973616e2d63616368652d64656275672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/juampi92/artisan-cache-debug) [![GitHub Tests Action Status](https://camo.githubusercontent.com/35d8fca610b4b0d140ffb1bdb599f015bb1bc6938c32ebdc000d865d20153e7a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6a75616d706939322f6172746973616e2d63616368652d64656275672f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/juampi92/artisan-cache-debug/actions?query=workflow%3Arun-tests+branch%3Amain) [![GitHub Code Style Action Status](https://camo.githubusercontent.com/8f5e2be483583c80e4f59ccd1ffbd77bfa687a4ab73f17e31ce2c30c5e1c88f6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6a75616d706939322f6172746973616e2d63616368652d64656275672f466978253230504850253230636f64652532307374796c652532306973737565733f6c6162656c3d636f64652532307374796c65)](https://github.com/juampi92/artisan-cache-debug/actions?query=workflow%3A'Fix+PHP+code+style+issues'+branch%3Amain) [![Total Downloads](https://camo.githubusercontent.com/0d2ee62025a43ce40f0c1f2e6db0a15def06b8946d43a7436eef3bf98ab4e367/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a75616d706939322f6172746973616e2d63616368652d64656275672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/juampi92/artisan-cache-debug)

🚀 Installation
--------------

[](#-installation)

You can install the package via composer:

```
composer require juampi92/artisan-cache-debug --dev
```

> If you would like to debug the cache in production, you can install it without the `--dev` flag.

Usage
-----

[](#usage)

The simplest usage:

```
php artisan cache:debug
```

### Options

[](#options)

Option / FlagDescription`--key=*`Will filter the keys. Can use wildcard. Example: `--key=*:translations`. [Read more](https://redis.io/commands/scan/#the-match-option)`--heavier-than[=HEAVIER-THAN]`Will hide keys lighter than X. Use a format like `10bytes`, `1kb`, `8b``--sort-by[=SORT-BY]`Will sort the keys by `size` or `key`. *\[default: "size"\]*`--sort-dir[=SORT-DIR]`Set the sorting direction: `asc` or `desc`.`--forever`Will **only** show non-expiring keys.`--with-details`Show the type of every cache record.`--store=`In case you want to debug a cache store other than the default.Testing
-------

[](#testing)

```
sail up -d
composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### To-do

[](#to-do)

Some ideas to expand this package:

- Pagination
- Filter on type
- Display the TTL (currently can't make it fit in the results)
- Support memcache?

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Juan Pablo Barreto](https://github.com/juampi92)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~89 days

Total

3

Last Release

1169d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1f8d31c9bb6d7862e21aac7af0f7b2615dc06485b4c30b19b8d9fdffaa42c712?d=identicon)[juampi92](/maintainers/juampi92)

---

Top Contributors

[![juampi92](https://avatars.githubusercontent.com/u/2080215?v=4)](https://github.com/juampi92 "juampi92 (40 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (9 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (7 commits)")

---

Tags

cachedebuglaravelphpredislaraveljuampi92artisan-cache-debug

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/juampi92-artisan-cache-debug/health.svg)

```
[![Health](https://phpackages.com/badges/juampi92-artisan-cache-debug/health.svg)](https://phpackages.com/packages/juampi92-artisan-cache-debug)
```

###  Alternatives

[spatie/laravel-responsecache

Speed up a Laravel application by caching the entire response

2.8k8.2M51](/packages/spatie-laravel-responsecache)[spatie/laravel-health

Monitor the health of a Laravel application

86910.0M83](/packages/spatie-laravel-health)[propaganistas/laravel-disposable-email

Disposable email validator

5762.6M6](/packages/propaganistas-laravel-disposable-email)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)[ryangjchandler/blade-cache-directive

Cache chunks of your Blade markup with ease.

202200.8k2](/packages/ryangjchandler-blade-cache-directive)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
