Skip to content

drobinetm/laravel-drobinetm-redis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


laravel-redis.png

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>