Skip to content

A tool that allows you to search, delete, batch delete redis key, preview value of key, flush current db or flush or db.

License

Notifications You must be signed in to change notification settings

zhitom/RedisWebManager

 
 

Repository files navigation

RedisWebManager

Preview

GIF Demo: https://imgur.com/kiYTz0V

Home page: Xnip2019-02-22_17-01-28.png

Check the value by popup(config option "valDisplayType" to "popup" at RedisWebManager/config/params.php):

Xnip2018-12-19_00-47-26.jpg

Check the value inline(config option "valDisplayType" to "inline" at RedisWebManager/config/params.php):

Xnip2018-12-19_01-28-54.jpg

Check the value in new page(only when the data is too long, check it in new page will be more clear and comfortable): Xnip2019-02-22_17-03-26.png

Overview server info: Xnip2019-02-22_16-56-56.png

Web client: Xnip2019-02-22_16-57-24.png

As you can see above, RedisWebManager Show the origin value(maybe array or object), not just simply a json string or a serialized string, this is the advantage of this tool(unserializing string only support PHP for the present).

中文版本/Chinese Version

中文版本

Features

  • View the redis key list
  • Preview value of a key(popup / inline / new page)
  • Preview json as array, serialized object as an object(the most important reason I wrote this tool)
  • Search by key prefix or suffix
  • Delete key & batch delete keys
  • Select to show which db
  • Flush current db or flush all db
  • View redis server info
  • Use client directives on Web just like in Terminal

Redis Config

redis config is located at(auto read redis_local.php at local while redis.php online):

RedisWebManager/config/redis.php
RedisWebManager/config/redis_local.php

Flush password & quickSearch Key

RedisWebManager/config/params.php
RedisWebManager/config/params_local.php

Login Account Config

RedisWebManager/models/User.php

Xnip2018-12-19_01-20-59.jpg

Set permission

sudo chmod -R 777 /path/to/RedisWebManager/runtime
sudo chmod -R 777 /path/to/RedisWebManager/web/assets

Nginx Config

server {
    charset utf-8;
    client_max_body_size 128M;

    listen 80; ## listen for ipv4
    #listen [::]:80 default_server ipv6only=on; ## listen for ipv6

    server_name mysite.test;
    root        /path/to/basic/web;
    index       index.php;

    access_log  /path/to/basic/log/access.log;
    error_log   /path/to/basic/log/error.log;

    location / {
        # Redirect everything that isn't a real file to index.php
        try_files $uri $uri/ /index.php$is_args$args;
    }

    # uncomment to avoid processing of calls to non-existing static files by Yii
    #location ~ \.(js|css|png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar)$ {
    #    try_files $uri =404;
    #}
    #error_page 404 /404.html;

    # deny accessing php files for the /assets directory
    location ~ ^/assets/.*\.php$ {
        deny all;
    }

    location ~ \.php$ {
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_pass 127.0.0.1:9000;
        #fastcgi_pass unix:/var/run/php5-fpm.sock;
        try_files $uri =404;
    }

    location ~* /\. {
        deny all;
    }
}

Update Log

2019-02-22 v0.3.1

  • Fix bug when click checkbox to select a key
  • Fix bug when using not default port 6379
  • Update README.md

2018-12-27 v0.3

  • Add Overview server info
  • Add Web redis-cli
  • change redis client to predis(phpredis before)
  • Use ajax search other than refreshing page
  • Add load more button(remove pagination)

2018-12-19 v0.2

  • Add inline preview manner.
  • Add showing ttl of a key.
  • Modified the popup window to bootstrap modal, not simply alert by js.
  • Modified the new preview page, more beautiful now.
  • Showing the array or object colorfully.
  • fix many bugs.

2018-12-14 v0.1

  • A tool that allows you to search, delete, batch delete redis key, preview value of key, flush current db or flush or db.

About

A tool that allows you to search, delete, batch delete redis key, preview value of key, flush current db or flush or db.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CSS 57.9%
  • JavaScript 23.0%
  • PHP 18.1%
  • Other 1.0%