drobinetm / laravel-drobinetm-redis
Package to obtain the info of a redis server used by our application through a json response.
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/drobinetm/laravel-drobinetm-redis
Requires
- php: ^7.3|^8.0
- ext-json: *
- predis/predis: ^1.1
Requires (Dev)
- mockery/mockery: ^1.0
- phpunit/phpunit: ^9.0
Suggests
- predis/predis: Required when not using the Redis PHP driver (^1.1).
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
-
Modify
phpredisbypredisin database.php config. -
Modify in database.php the connection config to your redis server.
Note: Laravel Docs
Then
-
Save the printed signature property in the console.
-
Send in the header of the links the value of the signature property: [Laravel-Redis-Signature] => signature value
Endpoints
-
[GET]
/redis/info| (Params - Optional)section: server|clients|memory|persistence|stats|replication|cpu|cluster|keyspace -
[GET]
/redis/keys| (Params - Optional)pattern: *|<any-pattern> -
[GET]
/redis/slow-log| (Params - Optional)argument: 1|<any-argument>

