Skip to content

Insolita/yii2-redisman-app

Repository files navigation

Yii 2 Redis manager application (Beta)

INSTALLATION

(SIMILAR AS DEFAULT YII2-BASIC APPLICATION)

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:

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.

http://localhost/basic/web/

CONFIGURATION

Database

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

'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,
        ],

About

RedisManager Application

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages