Simple artisan command to debug your redis cache. Requires PHP 8.1 & Laravel 9

Overview

🔎 php artisan cache:debug

Simple artisan command to debug your redis cache

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

🚀 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

The simplest usage:

php artisan cache:debug

Options

Option / Flag Description
--key=* Will filter the keys. Can use wildcard. Example: --key=*:translations. Read more
--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.

Testing

sail up -d
composer test

Contributing

Please see CONTRIBUTING for details.

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

Please see CHANGELOG for more information on what has changed recently.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

You might also like...
The place to keep your cache.

Stash - A PHP Caching Library Stash makes it easy to speed up your code by caching the results of expensive functions or code. Certain actions, like d

This is a Symfony bundle that lets you you integrate your PSR-6 compliant cache service with the framework

PSR-6 Cache bundle This is a Symfony bundle that lets you you integrate your PSR-6 compliant cache service with the framework. It lets you cache your

Refresh items in your cache without data races.

Cache Refresh Refresh items in your cache without data races. use Illuminate\Support\Facades\Cache; use Illuminate\Support\Collection; use App\Models\

A flexible and feature-complete Redis client for PHP.

Predis A flexible and feature-complete Redis client for PHP 7.2 and newer. ATTENTION: you are on the README file of an unstable branch of Predis speci

A PHP extension for Redis
A PHP extension for Redis

PhpRedis The phpredis extension provides an API for communicating with the Redis key-value store. It is released under the PHP License, version 3.01.

 Yii Caching Library - Redis Handler
Yii Caching Library - Redis Handler

Yii Caching Library - Redis Handler This package provides the Redis handler and implements PSR-16 cache. Requirements PHP 7.4 or higher. Installation

A fast, light-weight proxy for memcached and redis

twemproxy (nutcracker) twemproxy (pronounced "two-em-proxy"), aka nutcracker is a fast and lightweight proxy for memcached and redis protocol. It was

Zend_Cache backend using Redis with full support for tags

This Zend_Cache backend allows you to use a Redis server as a central cache storage. Tags are fully supported without the use of TwoLevels cache so this backend is great for use on a single machine or in a cluster. Works with any Zend Framework project including all versions of Magento!

LaraCache is an ORM based package for Laravel to create, update and manage cache items based on model queries

LaraCache Using this package, you can cache your heavy and most used queries. All you have to do is to define the CacheEntity objects in the model and

Comments
Releases(v1.1)
  • v1.1(Sep 17, 2022)

    What's Changed

    • Add --store= option by @juampi92 in https://github.com/juampi92/artisan-cache-debug/pull/2

    Full Changelog: https://github.com/juampi92/artisan-cache-debug/compare/v1.0...v1.1

    Source code(tar.gz)
    Source code(zip)
  • v1.0(Sep 8, 2022)

Owner
Juan Pablo Barreto
Juan Pablo Barreto
More Than Just a Cache: Redis Data Structures

More Than Just a Cache: Redis Data Structures Redis is a popular key-value store, commonly used as a cache or message broker service. However, it can

Andy Snell 2 Oct 16, 2021
Redis Object Cache for WordPress

A persistent object cache backend for WordPress powered by Redis. Supports Predis, PhpRedis, Relay, Credis, HHVM, replication and clustering.

Rhubarb Group 295 Dec 28, 2022
A thin PSR-6 cache wrapper with a generic interface to various caching backends emphasising cache tagging and indexing.

Apix Cache, cache-tagging for PHP Apix Cache is a generic and thin cache wrapper with a PSR-6 interface to various caching backends and emphasising ca

Apix 111 Nov 26, 2022
Graphic stand-alone administration for memcached to monitor and debug purpose

PHPMemcachedAdmin Graphic stand-alone administration for memcached to monitor and debug purpose This program allows to see in real-time (top-like) or

Cyrille Mahieux 249 Nov 15, 2022
:zap: Simple Cache Abstraction Layer for PHP

⚡ Simple Cache Class This is a simple Cache Abstraction Layer for PHP >= 7.0 that provides a simple interaction with your cache-server. You can define

Lars Moelleken 27 Dec 8, 2022
Simple cache abstraction layer implementing PSR-16

sabre/cache This repository is a simple abstraction layer for key-value caches. It implements PSR-16. If you need a super-simple way to support PSR-16

sabre.io 48 Sep 9, 2022
Simple cache

Simple cache

Róbert Kelčák 3 Dec 17, 2022
A simple cache library. Implements different adapters that you can use and change easily by a manager or similar.

Desarolla2 Cache A simple cache library, implementing the PSR-16 standard using immutable objects. Caching is typically used throughout an applicatito

Daniel González 129 Nov 20, 2022
A simple cache library. Implements different adapters that you can use and change easily by a manager or similar.

Desarolla2 Cache A simple cache library, implementing the PSR-16 standard using immutable objects. Caching is typically used throughout an applicatito

Daniel González 129 Nov 20, 2022