salopot/yii2-debug-memcached 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

salopot/yii2-debug-memcached

Composer 安装命令:

composer require salopot/yii2-debug-memcached

包简介

The memcached panel for Yii2 debug module

README 文档

README

The memcached panel for Yii2 debug module

Features

  • Show memcached statistic per server
  • Automatic get configuration from cache component
  • Configurable cache usage levels for warnings
  • Use Formatter or internal converter to show statistic

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist salopot/yii2-debug-memcached "dev-master"

or add

"salopot/yii2-debug-memcached": "dev-master"

to the require section of your composer.json file.

Update config: add panel to your debug module configuration:

'components'=>[
    ...
    'cache' => [
        'class' => 'yii\caching\MemCache',
         'servers' => [
            [
                'host' => 'server1',
                'port' => 11211,
                'weight' => 100,
            ],
            [
                'host' => 'server2',
                'port' => 11211,
                'weight' => 50,
            ],
            ***
         ],

    ],
    ...

],
...
'modules'=>[
    ...
    'debug'=>[
        ...
        'panels'=>[
            ...
            'memcached'=>[
                'class' => '\salopot\debug\memcached\panels\MemcachedPanel',
                //'useFormatter' => false,
            ]
        ]
    ]
    ...
]

Usage

You will see a debugger toolbar showing at the bottom of every page of your application. You can click on the "Memcached" toolbar panel to see more detailed debug information.

统计信息

  • 总下载量: 6.19k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-04-20