You can add as many redis servers as you want to your config.php file and choose between the defined servers from the menu available on the left side of all pages in PHP Redis Admin:
We must credit Eugene Fidelin for his great contributions to implement this feature
Note: If you want this feature to work, you have to setup the cron to gather data from your redis server as follows:
* * * * * root cd /var/www/phpredmin/web && php index.php cron/index
PHP Redis Admin provides you with a web-base redis console. This functionality takes advantage of PHP's exec
function. Although, all the commands are escaped for security, you can disable terminal from configuration file. In addition, you can set history limit or disable history by setting it to 0:
Information about your redis setup
View your redis runtime configurations
Find slow redis commands
Note: PHP Redis Admin uses eval to fetch slow log. So to use this feature you need redis version >= 2.6.0
You can easily switch between databases belonging to different servers easily:
You can flush selected database or all databases. You can also save database to a file on disk:
The search box will let you to easily search keys in the selected database:
Note: Becareful, since this still doesn't support pagination, try to limit your search otherwise if your search result is too long (e.g. *
) then your browser might crash.
The search results will be shown to you as a table. In this table besides the basic information about each key, PHP Redis Admin provides you with some actions:
- Expire (Sets TTL for a key)
- View (Shows keys' value/values and lets you manipulate it/them)
- Rename
- Move (Moves key to another database)
- Delete
From the main page of PHP Redis Admin you can add different types of key-values.
PHP Redis Admin makes it easier for you to manage your lists, hashes, sets and sorted sets. After searching for a special key, you can choose view action to see the contents of that key (According to its type) and manipulate them.
Note: This supports pagination
Note: This supports pagination
Note: Thanks to Ahmed Hamdy you can now edit members of a set
Note: This supports pagination
This feature lets you delete a key or a bunch of keys using wild cards
Note: This feature needs gearman. You have to both install gearman and php gearman extension
You can run gearman worker using the following command:
php index.php gearman/index
You can also setup a service for this command. I prefer supervisord to make it always running. Here is my config file:
[program:phpredmin]
directory=/var/www/phpredmin/web
command=php index.php gearman/index
process_name=%(program_name)s
numprocs=1
stdout_logfile=/var/log/supervisor/phpredmin.log
autostart=true
autorestart=true
user=sasan