Looking to hire Laravel developers? Try LaraJobs

laravel-drobinetm-redis maintained by drobinetm

Description
Package to obtain the info of a redis server used by our application through a json response.
Last update
2021/05/13 16:58 (dev-main)
License
Links
Downloads
5

Comments
comments powered by Disqus

Laravel Redis Information

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

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>