2017 © Pedro Peláez
 

project yii2-redisman-app

Yii 2 Redis Manager Application

image

insolita/yii2-redisman-app

Yii 2 Redis Manager Application

  • Tuesday, March 10, 2015
  • by Insolita
  • Repository
  • 2 Watchers
  • 3 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Yii 2 Redis manager application (Beta)

  • Demo http://yii2redis-insolita1.c9.io/ (admin adminredis)
  • Based on redisman-module https://github.com/Insolita/yii2-redisman Interface for work with different redis-connections, swtih between databases, search keys by patterns, move\edit\update\delete You can use yii2-redis connection, or custom module component that work via php-redis extension

INSTALLATION

(SIMILAR AS DEFAULT YII2-BASIC APPLICATION), (*1)

Install via Composer

If you do not have Composer, you may install it by following the instructions at getcomposer.org. You can then install this application template using the following command:, (*2)

php composer.phar global require "fxp/composer-asset-plugin:1.0.0"
php composer.phar create-project --prefer-dist --stability=dev insolita/yii2-redisman-app redisman

Now you should be able to access the application through the following URL, assuming basic is the directory directly under the Web root., (*3)

http://localhost/basic/web/

CONFIGURATION

Database

Edit the file config/web.php And configure required redis-connections, for example:, (*4)

'modules' => [
        'redisman' => [
            'class'=>'\insolita\redisman\Redisman',
            'connections'=>[
                'local'=>[
                    'class' => 'yii\redis\Connection',
                    'hostname' => 'localhost',
                    'port' => 6379,
                    'database' => 0,
                    'unixSocket'=>'/tmp/redis.sock'
                ],
                'remote1'=>[
                    'class' => 'insolita\redisman\components\PhpredisConnection',
                    'hostname' => '1.2.3.4',
                    'port' => 6379,
                    'database' =>1,
                    'unixSocket'=>'/tmp/redis.sock'
                ],
                'remote1'=>[
                    'class' => 'yii\redis\Connection',
                    'hostname' => '123.45.67.88',
                    'port' => 6379,
                    'database' => 0
                 ],
            ],
            'defRedis'=>'local',
            'searchMethod'=>'SCAN',
            'greedySearch'=>false,
        ],

The Versions