drobinetm/laravel-drobinetm-redis

Package to obtain the info of a redis server used by our application through a json response.

1.0.1 2021-05-13 14:58 UTC

This package is auto-updated.

Last update: 2024-05-13 21:31:13 UTC


README

Laravel Redis Information

Laravel package to get information from a Redis server with json response.

How to Use

composer require drobinetm/laravel-drobinetm-redis

php artisan laravel-redis:install

In Your Project

  1. Modify phpredis by predis in database.php config.

  2. Modify in database.php the connection config to your redis server.

Note: Laravel Docs

Then

  1. Save the printed signature property in the console.

  2. Send in the header of the links the value of the signature property: [Laravel-Redis-Signature] => signature value

laravel-redis-signature.png

Endpoints

  1. [GET] /redis/info | (Params - Optional) section: server|clients|memory|persistence|stats|replication|cpu|cluster|keyspace

  2. [GET] /redis/keys | (Params - Optional) pattern: *|<any-pattern>

  3. [GET] /redis/slow-log | (Params - Optional) argument: 1|<any-argument>