snide / zf-redmon
Zend Framework 2 Redis 监控模块
dev-master
2013-05-27 14:40 UTC
Requires
- php: >=5.3.3
- doctrine/doctrine-orm-module: 0.7.0
- ringoteam/phpredmon-lib: dev-master
This package is not auto-updated.
Last update: 2024-09-23 14:52:20 UTC
README
Zend Framework 2 的 Redis 监控模块
安装
使用 composer
{ "require": { "snide/zf-redmon": "dev-master" } }
在您的 applcation.config.php 中添加模块
<?php return array( // This should be an array of module namespaces used in the application. 'modules' => array( 'Application', 'SnideRedmon', ...
将公共模块子文件夹符号链接到您的App/public/modules/snide_redmon
依赖项
- doctrine/doctrine-orm-module
- predis/predis
配置
您可以选择使用 doctrine 存储库或文件存储库。为此,在您的应用程序配置文件中添加一些参数
Doctrine
'snide_redmon' => array( 'repository' => array( 'type' => 'doctrine' ), )
文件
'snide_redmon' => array( 'repository' => array( 'dir' => 'your/specific/folder', 'type' => 'file' ) )
批量
要记录 Redis 实例信息,有一个可用的 cli 工具
php public/index.php snide-redmon log
您可以更改日志的保留期(默认 = 30 天)
'snide_redmon' => array( 'logger' => array( 'nb_days' => 10 ) )