diff --git a/Backend/Common/Conf/config.php b/Backend/Common/Conf/config.php index f73a533..1663386 100644 --- a/Backend/Common/Conf/config.php +++ b/Backend/Common/Conf/config.php @@ -26,8 +26,13 @@ 'auth' => 'mastertestpassword', ), 'REDIS_SLAVE1' => array( - 'HOST' => '127.0.0.1', - 'PORT' => 6000, - 'AUTH' => '', - ) + 'host' => '127.0.0.1', + 'port' => 6000, + 'auth' => '', + ), + 'REDIS_SLAVE2' => array( + 'host' => '127.0.0.1', + 'port' => 6001, + 'auth' => '', +) ); \ No newline at end of file diff --git a/Backend/Home/Controller/RedisController.class.php b/Backend/Home/Controller/RedisController.class.php index a2898b0..df5175e 100644 --- a/Backend/Home/Controller/RedisController.class.php +++ b/Backend/Home/Controller/RedisController.class.php @@ -1,9 +1,136 @@ '127.0.0.1','port'=>6379,'auth'=>'mastertestpassword'); + public $redis; + + public function __construct() + { + parent::__construct(); + + } + public function index() { echo 'redis'; } + + public function RedisTest() + { + /** + * Write Redis + */ + $configMaster = array('host'=>'127.0.0.1','port'=>6379,'auth'=>'mastertestpassword'); + $redisWrite = Redis::getInstance($configMaster); + /*$redisWrite->zAdd('WanYin',90,'语文',100,'数学'); + $redisWrite->sAdd();*/ + /** + * Read Redis Data + */ + var_dump(C('REDIS_MASTER')); + $redisRead = Redis::getInstance(C('REDIS_MASTER')); + var_dump($redisRead->keys('*')); + } + + public function readRedis(){ + $redis = Redis::getInstance(C('REDIS_SLAVE2')); + var_dump($redis->keys('*')); + } + + /** + * 对某人进行关注 + * void + * @param $targetUser + * @param $user + */ + public function follow($targetUser,$user){ + $configMaster = array('host'=>'127.0.0.1','port'=>6379,'auth'=>'mastertestpassword'); + $redisWrite = Redis::getInstance($configMaster); + //自己关注的列表 + $followingKey = 'following:'.$user['uid']; + $redisWrite->sadd( $followingKey, $targetUser['uid']); + //被关注者的粉丝列表 + $followersKey = 'followers:'.$targetUser['uid']; + $redisWrite->sadd( $followersKey, $user['uid']); + $followers = $redisWrite->sCard($followersKey); //获取粉丝数 + $redisWrite->hset( 'user:'.$targetUser['uid'], 'fans', $followers); + } + + /** + * 对某人取消关注 + * void + * @param $targetUser + * @param $user + */ + function unfollow($targetUser,$user){ + $configMaster = array('host'=>'127.0.0.1','port'=>6379,'auth'=>'mastertestpassword'); + $redisWrite = Redis::getInstance($configMaster); + //自己关注的列表 + $followingKey='following:'.$user['uid']; + $redisWrite->sRem( $followingKey, $targetUser['uid']); + //被关注者的粉丝列表 + $followersKey='followers:'.$targetUser['uid']; + $redisWrite->sRem( $followersKey, $user['uid']); + $followers = $this->redis->sCard($followersKey); + //获取粉丝数 + $redisWrite->hset( 'user:'.$targetUser['uid'], 'fans', $followers); + } + + /** + * 用户自己的微博数据 + * array + * @param $uid + * @return array + */ + function getUserPosts($uid){ + $postList = array(); + $post_ids = $this->redis->lRange("$uid:posts",0,-1); + //获取微博的内容 + foreach ($post_ids as $post_id) + { + $post_line = $this->redis->get("post:$post_id"); + $postList[] = $this->convert($post_line); + } + return $postList; + } + + /** + * mixed + * @return mixed + */ + function getNextPostId(){ + $this->redis->incr('next_post_id'); + return $this->redis->get('next_post_id'); + } + + /** + * void + * @param $content + */ + function add($content){ + #创建投稿id + $next_post_id = $this->getNextPostId(); + $uid = $this->base->user['uid']; + #保存投稿数据 + $this->redis->set('post:'.$next_post_id, $uid.'|'.$this->base->time.'|'.$content); + #包含全部用户微博的时间线中追加投稿id + $this->redis->lPush('timeline',$next_post_id); + #所有粉丝的时间线中追加投稿id,包括自己 + $followers = $this->redis->sMembers("followers:$uid"); + $followers[]= $uid; //加上自己 + foreach ($followers as $follower_uid) { + $this->redis->lPush("timeline:$follower_uid", $next_post_id ); + } + #往自己的微博数据中追加投稿id + $this->redis->lPush("$uid:posts", $next_post_id ); + #增加发微博的条数 + $this->redis->hIncrBy( "user:$uid", 'posts', 1); + + } + + public function getDefine(){ + var_dump(C('REDIS_CONFIG')['HOST']); + } } \ No newline at end of file diff --git a/Backend/Runtime/Logs/Home/16_07_03.log b/Backend/Runtime/Logs/Home/16_07_03.log index 79f0ccd..df38c11 100644 --- a/Backend/Runtime/Logs/Home/16_07_03.log +++ b/Backend/Runtime/Logs/Home/16_07_03.log @@ -18,3 +18,1369 @@ INFO: [ app_end ] --START-- INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000000s ] INFO: [ app_end ] --END-- [ RunTime:0.000000s ] +[ 2016-07-03T09:25:27+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Index/index +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.000000s ] +INFO: [ view_parse ] --START-- +INFO: Run Behavior\ParseTemplateBehavior [ RunTime:0.000000s ] +INFO: [ view_parse ] --END-- [ RunTime:0.000000s ] +INFO: [ view_filter ] --START-- +INFO: Run Behavior\WriteHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ view_filter ] --END-- [ RunTime:0.000000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000000s ] +INFO: [ app_end ] --END-- [ RunTime:0.000000s ] + +[ 2016-07-03T09:25:34+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/index +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.000000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000000s ] +INFO: [ app_end ] --END-- [ RunTime:0.000000s ] + +[ 2016-07-03T09:30:17+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.000000s ] +ERR: Redis server went away + +[ 2016-07-03T09:31:07+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.000000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000000s ] +INFO: [ app_end ] --END-- [ RunTime:0.000000s ] + +[ 2016-07-03T09:31:58+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.000000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000000s ] +INFO: [ app_end ] --END-- [ RunTime:0.000000s ] + +[ 2016-07-03T09:34:44+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.000000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000000s ] +INFO: [ app_end ] --END-- [ RunTime:0.000000s ] + +[ 2016-07-03T09:34:45+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.000000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000000s ] +INFO: [ app_end ] --END-- [ RunTime:0.000000s ] + +[ 2016-07-03T09:34:46+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.000000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000000s ] +INFO: [ app_end ] --END-- [ RunTime:0.000000s ] + +[ 2016-07-03T09:34:47+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000000s ] +INFO: [ app_end ] --END-- [ RunTime:0.000000s ] + +[ 2016-07-03T09:34:47+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.001000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000000s ] +INFO: [ app_end ] --END-- [ RunTime:0.000000s ] + +[ 2016-07-03T09:34:47+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000000s ] +INFO: [ app_end ] --END-- [ RunTime:0.000000s ] + +[ 2016-07-03T09:58:58+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.000000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T09:58:58+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T09:59:07+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.000000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T10:38:53+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.000000s ] +NOTIC: [4096] Object of class Redis could not be converted to string F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 62 行. +NOTIC: [8] Object of class Redis to string conversion F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 62 行. +NOTIC: [8] Undefined variable: Object F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 62 行. + +[ 2016-07-03T10:38:56+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.010000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.010000s ] +NOTIC: [4096] Object of class Redis could not be converted to string F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 62 行. +NOTIC: [8] Object of class Redis to string conversion F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 62 行. +NOTIC: [8] Undefined variable: Object F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 62 行. + +[ 2016-07-03T10:39:36+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.002001s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.000000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000000s ] +INFO: [ app_end ] --END-- [ RunTime:0.002000s ] + +[ 2016-07-03T10:39:43+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.000000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000000s ] +INFO: [ app_end ] --END-- [ RunTime:0.000000s ] + +[ 2016-07-03T10:41:25+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000000s ] +INFO: [ app_end ] --END-- [ RunTime:0.000000s ] + +[ 2016-07-03T10:47:40+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.000000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000000s ] +INFO: [ app_end ] --END-- [ RunTime:0.010000s ] + +[ 2016-07-03T10:48:18+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.000000s ] +NOTIC: [8] Undefined index: master F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [2] Invalid argument supplied for foreach() F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T10:48:42+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.000000s ] +NOTIC: [8] Undefined index: master F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [2] Invalid argument supplied for foreach() F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000000s ] +INFO: [ app_end ] --END-- [ RunTime:0.000000s ] + +[ 2016-07-03T10:51:32+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.000000s ] +NOTIC: [8] Undefined index: master F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [2] Invalid argument supplied for foreach() F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T10:51:36+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +NOTIC: [8] Undefined index: master F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [2] Invalid argument supplied for foreach() F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T10:52:00+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.000000s ] +NOTIC: [8] Undefined index: master F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [2] Invalid argument supplied for foreach() F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T11:03:18+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +NOTIC: [8] Undefined index: master F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [2] Invalid argument supplied for foreach() F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T11:04:19+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +NOTIC: [8] Undefined index: master F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [2] Invalid argument supplied for foreach() F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T11:04:24+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +NOTIC: [8] Undefined index: master F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [2] Invalid argument supplied for foreach() F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T11:05:07+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +NOTIC: [8] Undefined index: master F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [2] Invalid argument supplied for foreach() F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000000s ] +INFO: [ app_end ] --END-- [ RunTime:0.000000s ] + +[ 2016-07-03T11:05:24+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +NOTIC: [8] Undefined index: master F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [2] Invalid argument supplied for foreach() F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T11:05:27+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.000000s ] +NOTIC: [8] Undefined index: master F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [2] Invalid argument supplied for foreach() F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T11:06:31+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.002000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.000000s ] +NOTIC: [8] Undefined index: master F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [2] Invalid argument supplied for foreach() F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T11:08:20+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001001s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +NOTIC: [8] Undefined index: master F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [2] Invalid argument supplied for foreach() F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [8] Undefined index: master F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 108 行. +NOTIC: [2] Invalid argument supplied for foreach() F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 108 行. +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T11:08:24+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +NOTIC: [8] Undefined index: master F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [2] Invalid argument supplied for foreach() F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [8] Undefined index: master F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 108 行. +NOTIC: [2] Invalid argument supplied for foreach() F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 108 行. +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T11:08:45+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +NOTIC: [8] Undefined index: master F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [2] Invalid argument supplied for foreach() F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [8] Undefined index: master F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 108 行. +NOTIC: [2] Invalid argument supplied for foreach() F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 108 行. +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T11:08:48+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +NOTIC: [8] Undefined index: master F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [2] Invalid argument supplied for foreach() F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [8] Undefined index: master F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 108 行. +NOTIC: [2] Invalid argument supplied for foreach() F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 108 行. +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000000s ] +INFO: [ app_end ] --END-- [ RunTime:0.000000s ] + +[ 2016-07-03T11:09:31+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +NOTIC: [8] Undefined index: master F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [2] Invalid argument supplied for foreach() F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [8] Undefined index: master F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 108 行. +NOTIC: [2] Invalid argument supplied for foreach() F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 108 行. +NOTIC: [8] Undefined index: slave F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 78 行. +NOTIC: [8] Undefined index: slave F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 79 行. + +[ 2016-07-03T11:09:52+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +NOTIC: [8] Undefined index: slave F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 78 行. +NOTIC: [8] Undefined index: slave F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 79 行. + +[ 2016-07-03T11:09:58+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +NOTIC: [8] Undefined index: slave F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 78 行. +NOTIC: [8] Undefined index: slave F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 79 行. + +[ 2016-07-03T11:11:29+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +NOTIC: [8] Undefined index: master F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [2] Invalid argument supplied for foreach() F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [8] Undefined index: slave F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 78 行. +NOTIC: [8] Undefined index: slave F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 79 行. + +[ 2016-07-03T11:11:30+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +NOTIC: [8] Undefined index: master F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [2] Invalid argument supplied for foreach() F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [8] Undefined index: slave F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 78 行. +NOTIC: [8] Undefined index: slave F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 79 行. + +[ 2016-07-03T11:11:31+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +NOTIC: [8] Undefined index: master F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [2] Invalid argument supplied for foreach() F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [8] Undefined index: slave F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 78 行. +NOTIC: [8] Undefined index: slave F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 79 行. + +[ 2016-07-03T11:11:31+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +NOTIC: [8] Undefined index: master F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [2] Invalid argument supplied for foreach() F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [8] Undefined index: slave F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 78 行. +NOTIC: [8] Undefined index: slave F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 79 行. + +[ 2016-07-03T11:11:31+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +NOTIC: [8] Undefined index: master F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [2] Invalid argument supplied for foreach() F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [8] Undefined index: slave F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 78 行. +NOTIC: [8] Undefined index: slave F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 79 行. + +[ 2016-07-03T11:11:32+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +NOTIC: [8] Undefined index: master F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [2] Invalid argument supplied for foreach() F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [8] Undefined index: slave F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 78 行. +NOTIC: [8] Undefined index: slave F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 79 行. + +[ 2016-07-03T11:11:32+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001001s ] +NOTIC: [8] Undefined index: master F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [2] Invalid argument supplied for foreach() F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [8] Undefined index: slave F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 78 行. +NOTIC: [8] Undefined index: slave F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 79 行. + +[ 2016-07-03T11:11:40+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001001s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +NOTIC: [8] Undefined index: master F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [2] Invalid argument supplied for foreach() F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [8] Undefined index: slave F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 78 行. +NOTIC: [8] Undefined index: slave F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 79 行. + +[ 2016-07-03T11:11:40+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +NOTIC: [8] Undefined index: master F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [2] Invalid argument supplied for foreach() F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [8] Undefined index: slave F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 78 行. +NOTIC: [8] Undefined index: slave F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 79 行. + +[ 2016-07-03T11:11:41+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +NOTIC: [8] Undefined index: master F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [2] Invalid argument supplied for foreach() F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [8] Undefined index: slave F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 78 行. +NOTIC: [8] Undefined index: slave F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 79 行. + +[ 2016-07-03T11:11:42+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +NOTIC: [8] Undefined index: master F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [2] Invalid argument supplied for foreach() F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [8] Undefined index: slave F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 78 行. +NOTIC: [8] Undefined index: slave F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 79 行. + +[ 2016-07-03T11:11:42+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.000000s ] +NOTIC: [8] Undefined index: master F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [2] Invalid argument supplied for foreach() F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [8] Undefined index: slave F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 78 行. +NOTIC: [8] Undefined index: slave F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 79 行. + +[ 2016-07-03T11:11:43+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +NOTIC: [8] Undefined index: master F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [2] Invalid argument supplied for foreach() F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [8] Undefined index: slave F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 78 行. +NOTIC: [8] Undefined index: slave F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 79 行. + +[ 2016-07-03T11:11:43+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.000000s ] +NOTIC: [8] Undefined index: master F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [2] Invalid argument supplied for foreach() F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 52 行. +NOTIC: [8] Undefined index: slave F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 78 行. +NOTIC: [8] Undefined index: slave F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 79 行. + +[ 2016-07-03T11:12:09+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.000000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.002000s ] + +[ 2016-07-03T11:12:12+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.002000s ] +INFO: [ app_end ] --END-- [ RunTime:0.002000s ] + +[ 2016-07-03T11:12:38+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.000000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000000s ] +INFO: [ app_end ] --END-- [ RunTime:0.000000s ] + +[ 2016-07-03T11:12:58+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T11:13:01+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000000s ] +INFO: [ app_end ] --END-- [ RunTime:0.000000s ] + +[ 2016-07-03T11:18:16+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.000000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T11:18:17+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.000000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000000s ] +INFO: [ app_end ] --END-- [ RunTime:0.002001s ] + +[ 2016-07-03T11:18:18+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T11:18:18+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.000000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.002000s ] +INFO: [ app_end ] --END-- [ RunTime:0.002000s ] + +[ 2016-07-03T11:18:25+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T11:20:26+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.002000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.003000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T11:20:27+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T11:20:27+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.001000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000000s ] +INFO: [ app_end ] --END-- [ RunTime:0.000000s ] + +[ 2016-07-03T11:20:34+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001001s ] +INFO: [ app_end ] --END-- [ RunTime:0.001001s ] + +[ 2016-07-03T11:20:35+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T11:20:35+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T11:20:42+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T11:20:42+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T11:22:41+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001001s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.002000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T11:22:41+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T11:22:42+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001001s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T11:22:42+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.000000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T11:23:32+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T11:23:33+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.000000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T14:07:34+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T14:12:04+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.002000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.002000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.002000s ] + +[ 2016-07-03T14:12:05+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T14:50:04+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +NOTIC: [2] Wrong parameter count for Redis::sAdd() F:\wamp\www\ThinkPhpStudy\Backend\Home\Controller\RedisController.class.php 第 28 行. +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.002000s ] + +[ 2016-07-03T15:01:55+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/getDefine +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000000s ] +INFO: [ app_end ] --END-- [ RunTime:0.000000s ] + +[ 2016-07-03T15:02:37+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/getDefine +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.000000s ] +NOTIC: [8] Use of undefined constant REDIS_HOST - assumed 'REDIS_HOST' F:\wamp\www\ThinkPhpStudy\Backend\Home\Controller\RedisController.class.php 第 130 行. +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.002000s ] +INFO: [ app_end ] --END-- [ RunTime:0.002000s ] + +[ 2016-07-03T15:02:38+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/getDefine +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001001s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +NOTIC: [8] Use of undefined constant REDIS_HOST - assumed 'REDIS_HOST' F:\wamp\www\ThinkPhpStudy\Backend\Home\Controller\RedisController.class.php 第 130 行. +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T15:02:39+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/getDefine +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +NOTIC: [8] Use of undefined constant REDIS_HOST - assumed 'REDIS_HOST' F:\wamp\www\ThinkPhpStudy\Backend\Home\Controller\RedisController.class.php 第 130 行. +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000000s ] +INFO: [ app_end ] --END-- [ RunTime:0.002000s ] + +[ 2016-07-03T15:02:40+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/getDefine +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.002000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.000000s ] +NOTIC: [8] Use of undefined constant REDIS_HOST - assumed 'REDIS_HOST' F:\wamp\www\ThinkPhpStudy\Backend\Home\Controller\RedisController.class.php 第 130 行. +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T15:03:33+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/getDefine +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.000000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000000s ] +INFO: [ app_end ] --END-- [ RunTime:0.000000s ] + +[ 2016-07-03T15:05:38+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/getDefine +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T15:05:39+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/getDefine +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.002000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T15:05:39+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/getDefine +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T15:05:50+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/getDefine +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.002000s ] + +[ 2016-07-03T15:05:51+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/getDefine +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.002000s ] + +[ 2016-07-03T15:08:13+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/getDefine +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T15:08:14+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/getDefine +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000000s ] +INFO: [ app_end ] --END-- [ RunTime:0.000000s ] + +[ 2016-07-03T15:08:14+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/getDefine +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000000s ] +INFO: [ app_end ] --END-- [ RunTime:0.000000s ] + +[ 2016-07-03T15:08:24+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/getDefine +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.001000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T15:08:43+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/getDefine +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.002000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.003000s ] + +[ 2016-07-03T15:14:26+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/%20RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.000000s ] +ERR: 非法操作: RedisTest + +[ 2016-07-03T15:14:29+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/getDefine +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.000000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T15:14:38+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +NOTIC: [8] Undefined index: HOST F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 36 行. +NOTIC: [8] Undefined index: PORT F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 36 行. +NOTIC: [8] Undefined index: AUTH F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 37 行. +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T15:15:11+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.002000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +NOTIC: [8] Undefined index: HOST F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 36 行. +NOTIC: [8] Undefined index: PORT F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 36 行. +NOTIC: [8] Undefined index: AUTH F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 37 行. +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000000s ] +INFO: [ app_end ] --END-- [ RunTime:0.002000s ] + +[ 2016-07-03T15:16:40+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +NOTIC: [8] Undefined index: HOST F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 39 行. +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T15:17:32+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.000000s ] +NOTIC: [8] Undefined index: HOST F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 36 行. +NOTIC: [8] Undefined index: PORT F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 36 行. +NOTIC: [8] Undefined index: AUTH F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 37 行. +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T15:18:04+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +NOTIC: [8] Undefined index: HOST F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 36 行. +NOTIC: [8] Undefined index: PORT F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 36 行. +NOTIC: [8] Undefined index: AUTH F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 37 行. +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.002000s ] + +[ 2016-07-03T15:18:29+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +NOTIC: [8] Undefined index: HOST F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 36 行. +NOTIC: [8] Undefined index: PORT F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 36 行. +NOTIC: [8] Undefined index: AUTH F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 37 行. +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T15:19:01+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.002000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.002000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T15:20:07+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.002000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.002000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T15:20:07+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000000s ] +INFO: [ app_end ] --END-- [ RunTime:0.002000s ] + +[ 2016-07-03T15:20:08+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.000000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T15:20:08+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.000000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T15:20:58+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.000000s ] +NOTIC: [8] Undefined index: HOST F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 36 行. +NOTIC: [8] Undefined index: PORT F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 36 行. +NOTIC: [8] Undefined index: AUTH F:\wamp\www\ThinkPhpStudy\ThinkPHP\Library\Org\Util\Redis.class.php 第 37 行. +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.002000s ] +INFO: [ app_end ] --END-- [ RunTime:0.002000s ] + +[ 2016-07-03T15:21:11+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/RedisTest +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.002000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T15:24:33+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/readRedis +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.000000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.002000s ] + +[ 2016-07-03T15:25:16+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/readRedis +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T15:29:36+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/readRedis +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +ERR: read error on connection + +[ 2016-07-03T15:33:41+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/readRedis +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T15:33:57+08:00 ] 127.0.0.1 /ThinkPhpStudy/admin.php/Home/Redis/readRedis +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.001000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.000000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + diff --git a/Frontend/Runtime/Logs/Home/16_07_03.log b/Frontend/Runtime/Logs/Home/16_07_03.log index c2a07b9..2549249 100644 --- a/Frontend/Runtime/Logs/Home/16_07_03.log +++ b/Frontend/Runtime/Logs/Home/16_07_03.log @@ -18,3 +18,72 @@ INFO: [ app_end ] --START-- INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000000s ] INFO: [ app_end ] --END-- [ RunTime:0.001000s ] +[ 2016-07-03T09:24:36+08:00 ] 127.0.0.1 /ThinkPhpStudy/index.php/Home/Redis/index +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.000000s ] +ERR: 无法加载控制器:Redis + +[ 2016-07-03T09:24:52+08:00 ] 127.0.0.1 /ThinkPhpStudy/index.php/Home/redis +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.000000s ] +ERR: 无法加载控制器:Redis + +[ 2016-07-03T09:25:01+08:00 ] 127.0.0.1 /ThinkPhpStudy/index.php/Home +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.001000s ] +INFO: [ view_parse ] --START-- +INFO: Run Behavior\ParseTemplateBehavior [ RunTime:0.001000s ] +INFO: [ view_parse ] --END-- [ RunTime:0.001000s ] +INFO: [ view_filter ] --START-- +INFO: Run Behavior\WriteHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ view_filter ] --END-- [ RunTime:0.000000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001000s ] +INFO: [ app_end ] --END-- [ RunTime:0.001000s ] + +[ 2016-07-03T09:25:05+08:00 ] 127.0.0.1 /ThinkPhpStudy/index.php/Home/Index +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.000000s ] +INFO: [ view_parse ] --START-- +INFO: Run Behavior\ParseTemplateBehavior [ RunTime:0.000000s ] +INFO: [ view_parse ] --END-- [ RunTime:0.000000s ] +INFO: [ view_filter ] --START-- +INFO: Run Behavior\WriteHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ view_filter ] --END-- [ RunTime:0.000000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000000s ] +INFO: [ app_end ] --END-- [ RunTime:0.000000s ] + +[ 2016-07-03T09:25:11+08:00 ] 127.0.0.1 /ThinkPhpStudy/index.php/Home/Index/index +INFO: [ app_init ] --START-- +INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000000s ] +INFO: [ app_init ] --END-- [ RunTime:0.000000s ] +INFO: [ app_begin ] --START-- +INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ app_begin ] --END-- [ RunTime:0.000000s ] +INFO: [ view_parse ] --START-- +INFO: Run Behavior\ParseTemplateBehavior [ RunTime:0.010000s ] +INFO: [ view_parse ] --END-- [ RunTime:0.010000s ] +INFO: [ view_filter ] --START-- +INFO: Run Behavior\WriteHtmlCacheBehavior [ RunTime:0.000000s ] +INFO: [ view_filter ] --END-- [ RunTime:0.000000s ] +INFO: [ app_end ] --START-- +INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000000s ] +INFO: [ app_end ] --END-- [ RunTime:0.000000s ] + diff --git a/ThinkPHP/Library/Org/Util/Redis.class.php b/ThinkPHP/Library/Org/Util/Redis.class.php index 83270db..2c8ba19 100644 --- a/ThinkPHP/Library/Org/Util/Redis.class.php +++ b/ThinkPHP/Library/Org/Util/Redis.class.php @@ -12,291 +12,322 @@ class Redis { - /** - * 保存类实例的静态成员变量 - * @var - */ - public static $instance; + //保存类实例的静态成员变量 + protected static $cong_redis; - public static $linkHandle = array(); - - /** - * construct:connect redis - * Redis constructor. - * @param $configs - */ - public function __construct($configs){ - $this->initRedis($configs); - } - - /** - * Redis - * @param $configs - * @static - * @return Redis - */ - public static function getInstance($configs){ - if(!self::$instance){ - self::$instance = new self($configs); - } - return self::$instance; - } - - /** - * 初始化Redis - * void - * @param $conf - */ - private function initRedis($conf){ - /** Master */ - foreach($conf['master'] as $value => $key){ - $objMaster = new \Redis(); - if($objMaster ->pconnect($value['host'],$value['port'])){ - $objMaster ->auth($value['auth']); - self::$linkHandle['master'][] = $objMaster ; - } - } - /** Slave */ - foreach($conf['slave'] as $v => $k){ - $objSlave = new \Redis(); - if($objSlave->pconnect($v['host'],$v['port'])){ - $objSlave->auth($v['auth']); - self::$linkHandle['slave'][] = $objSlave; - } - } - } - - /** - * 获得redis Resources - * mixed - * @param null $key ### redis存的key/或随机值 - * @param string $tag ### master/slave - * @return mixed - */ - public function getRedis($key = null ,$tag = 'master'){ - empty($key)?$key = uniqid():''; - $arr_index =$this->getHostByHash($key,count(self::$linkHandle[$tag])); - return self::$linkHandle[$tag][$arr_index]; - } - - /** - * 随机取出主机 - * @param $key $变量key值 - * @param $n 主机数 - * @return string - */ - private function getHostByHash($key,$n){ - if($n<2) return 0; - $u = strtolower($key); - $id = sprintf("%u", crc32($key)); - - $m = base_convert( intval(fmod($id, $n)), 10, $n); - return $m{0}; - } - - /** - * 关闭连接 - * pconnect 连接是无法关闭的 - * - * @param int $flag 关闭选择 0:关闭 Master 1:关闭 Slave 2:关闭所有 - * @return boolean - */ - public function close($flag=2){ - switch($flag){ - // 关闭 Master - case 0: - foreach (self::$linkHandle['master'] as $var){ - $var->close(); - } - break; - // 关闭 Slave - case 1: - foreach (self::$linkHandle['slave'] as $var){ - $var->close(); - } - break; - // 关闭所有 - case 2: - $this->close(0); - $this->close(1); - break; - } - return true; - } - - /** - * mixed - * @param $key - * @return mixed - */ - public function hGetAll($key){ - return $this->getRedis($key,'slave')->hGetAll($key); - } - - /** - * redis 字符串(String) 类型 - * 将key和value对应。如果key已经存在了,它会被覆盖,而不管它是什么类型。 - * @param $key - * @param $value - * @param $exp ### 过期时间 - */ - public function set($key,$value,$exp=0){ - $redis = $this->getRedis($key); - $redis->set($key,$value); - !empty($exp) && $redis->expire($key,$exp); - } - - /** - * 返回key的value。如果key不存在,返回特殊值nil。如果key的value不是string,就返回错误,因为GET只处理string类型的values。 - * @param $key - */ - public function get($key){ - return $this->getRedis($key,'slave')->get($key); - } - - /** - * KEYS pattern - * 查找所有匹配给定的模式的键 - * @param $is_key 默认是一个非正则表达试,使用模糊查询 - * @param $key - */ - public function keys($key,$is_key = true){ - if($is_key){ - return $this->getRedis($key,'slave')->keys("*$key*"); - } - return $this->getRedis($key ,'slave')->keys("$key"); - } - - /** - * 批量填充HASH表。不是字符串类型的VALUE,自动转换成字符串类型。使用标准的值。NULL值将被储存为一个空的字符串。 - * - * 可以批量添加更新 value,key 不存在将创建,存在则更新值 - * - * @param $key - * @param $fieldArr - * @return - * 如果命令执行成功,返回OK。 - * 当key不是哈希表(hash)类型时,返回一个错误。 - */ - public function hMSet($key,$fieldArr){ - return $this->getRedis($key)->hmset($key,$fieldArr); - } - /** - * 向已存在于redis里的Hash 添加多个新的字段及值 - * - * @param $key redis 已存在的key - * @param $field_arr kv形数组 - */ - public function hAddFieldArr($key,$field_arr){ - foreach ($field_arr as $k=>$v){ - $this->hAddFieldOne($key, $k, $v); - } - } - - /** - * 向已存在于redis里的Hash 添加一个新的字段及值 - * @param $key - * @param $field_name - * @param $field_value - * @return bool - */ - public function hAddFieldOne($key,$field_name,$field_value){ - return $this->getRedis($key)->hsetnx($key,$field_name,$field_value); - } - - /** - * 向Hash里添加多个新的字段或修改一个已存在字段的值 - * @param $key - * @param $field_arr - */ - public function hAddOrUpValueArr($key,$field_arr){ - foreach ($field_arr as $k=>$v){ - $this->hAddOrUpValueOne($key, $k, $v); - } - } - /** - * 向Hash里添加多个新的字段或修改一个已存在字段的值 - * @param $key - * @param $field_name - * @param $field_value - * @return boolean - * 1 if value didn't exist and was added successfully, - * 0 if the value was already present and was replaced, FALSE if there was an error. - */ - public function hAddOrUpValueOne($key,$field_name,$field_value){ - return $this->getRedis($key)->hset($key,$field_name,$field_value); - } - - /** - * 删除哈希表key中的多个指定域,不存在的域将被忽略。 - * @param $key - * @param $field_arr - */ - public function hDel($key,$field_arr){ - foreach ($field_arr as $var){ - $this->hDelOne($key,$var); - } - } - - /** - * 删除哈希表key中的一个指定域,不存在的域将被忽略。 - * - * @param $key - * @param $field - * @return BOOL TRUE in case of success, FALSE in case of failure - */ - public function hDelOne($key,$field){ - return $this->getRedis($key)->hdel($key,$field); + //private标记的构造方法 + private function __construct() + { + echo 'This is a Constructed method;'; } - /** - * 重命名key - * - * @param $oldkey - * @param $newkey - */ - public function renameKey($oldkey,$newkey){ - return $this->getRedis($oldkey)->rename($oldkey,$newkey); + //创建__clone方法防止对象被复制克隆 + public function __clone() + { + trigger_error('Clone is not allow!',E_USER_ERROR); } - /** - * 删除一个或多个key - * @param $keys - */ - public function delKey($keys){ - if(is_array($keys)){ - foreach ($keys as $key){ - $this->getRedis($key)->del($key); - } - }else { - $this->getRedis($key)->del($key); + //单例方法,用于访问实例的公共的静态方法 + public static function getInstance($config) + { + if(!self::$cong_redis instanceof \Redis) + { + self::$cong_redis = new \Redis; + self::$cong_redis->connect($config['host'],$config['port']); + self::$cong_redis->auth($config['auth']); } + return self::$cong_redis; } - /** - * 添加一个字符串值到LIST容器的顶部(左侧),如果KEY不存在,曾创建一个LIST容器,如果KEY存在并且不是一个LIST容器,那么返回FLASE。 - * - * @param unknown $key - * @param unknown $val - */ - public function lPush($key,$val){ - $this->getRedis($key)->lPush($key,$val); - } - - /** - * 返回LIST顶部(左侧)的VALUE,并且从LIST中把该VALUE弹出。 - * @param unknown $key - */ - public function lPop($key){ - $this->getRedis($key)->lPop($key); - } - - - /** - * 批量的添加多个key 到redis - * @param $fieldArr - */ - public function mSetnx($fieldArr){ - $this->getRedis()->mSetnx($fieldArr); + //是否被调用成功的方法 + public function test(){ + echo '调用方法成功'; } +// /** +// * 保存类实例的静态成员变量 +// * @var +// */ +// public static $instance; +// +// public static $linkHandle = array(); +// +// /** +// * construct:connect redis +// * Redis constructor. +// * @param $configs +// */ +// public function __construct($configs){ +// $this->initRedis($configs); +// } +// +// /** +// * Redis +// * @param $configs +// * @static +// * @return Redis +// */ +// public static function getInstance($configs){ +// if(!self::$instance){ +// self::$instance = new self($configs); +// } +// return self::$instance; +// } +// +// /** +// * 初始化Redis +// * void +// * @param $conf +// */ +// private function initRedis($conf){ +// /** Master */ +//// foreach($conf['master'] as $value => $key){ +//// $obj = new \Redis(); +//// if($obj ->pconnect($value['host'],$value['port'])){ +//// $obj ->auth($value['auth']); +//// self::$linkHandle['master'][] = $obj ; +//// } +//// } +// /** Slave */ +// foreach($conf['slave'] as $v => $k){ +// $obj = new \Redis(); +// if($obj->pconnect($v['host'],$v['port'])){ +// $obj->auth($v['auth']); +// self::$linkHandle['slave'][] = $obj; +// } +// } +// } +// +// /** +// * 获得redis Resources +// * mixed +// * @param null $key ### redis存的key/或随机值 +// * @param string $tag ### master/slave +// * @return mixed +// */ +// public function getRedis($key = null ,$tag = 'master'){ +// empty($key)?$key = uniqid():''; +// $arr_index =$this->getHostByHash($key,count(self::$linkHandle[$tag])); +// return self::$linkHandle[$tag][$arr_index]; +// } +// +// /** +// * 随机取出主机 +// * @param $key $变量key值 +// * @param $n 主机数 +// * @return string +// */ +// private function getHostByHash($key,$n){ +// if($n<2) return 0; +// $u = strtolower($key); +// $id = sprintf("%u", crc32($key)); +// +// $m = base_convert( intval(fmod($id, $n)), 10, $n); +// return $m{0}; +// } +// +// /** +// * 关闭连接 +// * pconnect 连接是无法关闭的 +// * +// * @param int $flag 关闭选择 0:关闭 Master 1:关闭 Slave 2:关闭所有 +// * @return boolean +// */ +// public function close($flag=2){ +// switch($flag){ +// // 关闭 Master +// case 0: +// foreach (self::$linkHandle['master'] as $var){ +// $var->close(); +// } +// break; +// // 关闭 Slave +// case 1: +// foreach (self::$linkHandle['slave'] as $var){ +// $var->close(); +// } +// break; +// // 关闭所有 +// case 2: +// $this->close(0); +// $this->close(1); +// break; +// } +// return true; +// } +// +// /** +// * mixed +// * @param $key +// * @return mixed +// */ +// public function hGetAll($key){ +// return $this->getRedis($key,'slave')->hGetAll($key); +// } +// +// /** +// * redis 字符串(String) 类型 +// * 将key和value对应。如果key已经存在了,它会被覆盖,而不管它是什么类型。 +// * @param $key +// * @param $value +// * @param $exp ### 过期时间 +// */ +// public function set($key,$value,$exp=0){ +// $redis = $this->getRedis($key); +// $redis->set($key,$value); +// !empty($exp) && $redis->expire($key,$exp); +// } +// +// /** +// * 返回key的value。如果key不存在,返回特殊值nil。如果key的value不是string,就返回错误,因为GET只处理string类型的values。 +// * @param $key +// */ +// public function get($key){ +// return $this->getRedis($key,'slave')->get($key); +// } +// +// /** +// * KEYS pattern +// * 查找所有匹配给定的模式的键 +// * @param $is_key 默认是一个非正则表达试,使用模糊查询 +// * @param $key +// */ +// public function keys($key,$is_key = true){ +// if($is_key){ +// return $this->getRedis($key,'slave')->keys("*$key*"); +// } +// return $this->getRedis($key ,'slave')->keys("$key"); +// } +// +// /** +// * 批量填充HASH表。不是字符串类型的VALUE,自动转换成字符串类型。使用标准的值。NULL值将被储存为一个空的字符串。 +// * +// * 可以批量添加更新 value,key 不存在将创建,存在则更新值 +// * +// * @param $key +// * @param $fieldArr +// * @return +// * 如果命令执行成功,返回OK。 +// * 当key不是哈希表(hash)类型时,返回一个错误。 +// */ +// public function hMSet($key,$fieldArr){ +// return $this->getRedis($key)->hmset($key,$fieldArr); +// } +// /** +// * 向已存在于redis里的Hash 添加多个新的字段及值 +// * +// * @param $key redis 已存在的key +// * @param $field_arr kv形数组 +// */ +// public function hAddFieldArr($key,$field_arr){ +// foreach ($field_arr as $k=>$v){ +// $this->hAddFieldOne($key, $k, $v); +// } +// } +// +// /** +// * 向已存在于redis里的Hash 添加一个新的字段及值 +// * @param $key +// * @param $field_name +// * @param $field_value +// * @return bool +// */ +// public function hAddFieldOne($key,$field_name,$field_value){ +// return $this->getRedis($key)->hsetnx($key,$field_name,$field_value); +// } +// +// /** +// * 向Hash里添加多个新的字段或修改一个已存在字段的值 +// * @param $key +// * @param $field_arr +// */ +// public function hAddOrUpValueArr($key,$field_arr){ +// foreach ($field_arr as $k=>$v){ +// $this->hAddOrUpValueOne($key, $k, $v); +// } +// } +// /** +// * 向Hash里添加多个新的字段或修改一个已存在字段的值 +// * @param $key +// * @param $field_name +// * @param $field_value +// * @return boolean +// * 1 if value didn't exist and was added successfully, +// * 0 if the value was already present and was replaced, FALSE if there was an error. +// */ +// public function hAddOrUpValueOne($key,$field_name,$field_value){ +// return $this->getRedis($key)->hset($key,$field_name,$field_value); +// } +// +// /** +// * 删除哈希表key中的多个指定域,不存在的域将被忽略。 +// * @param $key +// * @param $field_arr +// */ +// public function hDel($key,$field_arr){ +// foreach ($field_arr as $var){ +// $this->hDelOne($key,$var); +// } +// } +// +// /** +// * 删除哈希表key中的一个指定域,不存在的域将被忽略。 +// * +// * @param $key +// * @param $field +// * @return BOOL TRUE in case of success, FALSE in case of failure +// */ +// public function hDelOne($key,$field){ +// return $this->getRedis($key)->hdel($key,$field); +// } +// +// /** +// * 重命名key +// * +// * @param $oldkey +// * @param $newkey +// */ +// public function renameKey($oldkey,$newkey){ +// return $this->getRedis($oldkey)->rename($oldkey,$newkey); +// } +// +// /** +// * 删除一个或多个key +// * @param $keys +// */ +// public function delKey($keys){ +// if(is_array($keys)){ +// foreach ($keys as $key){ +// $this->getRedis($key)->del($key); +// } +// }else { +// $this->getRedis($key)->del($key); +// } +// } +// /** +// * 添加一个字符串值到LIST容器的顶部(左侧),如果KEY不存在,曾创建一个LIST容器,如果KEY存在并且不是一个LIST容器,那么返回FLASE。 +// * +// * @param unknown $key +// * @param unknown $val +// */ +// public function lPush($key,$val){ +// $this->getRedis($key)->lPush($key,$val); +// } +// +// /** +// * 返回LIST顶部(左侧)的VALUE,并且从LIST中把该VALUE弹出。 +// * @param unknown $key +// */ +// public function lPop($key){ +// $this->getRedis($key)->lPop($key); +// } +// +// +// /** +// * 批量的添加多个key 到redis +// * @param $fieldArr +// */ +// public function mSetnx($fieldArr){ +// +// $this->getRedis()->mSetnx($fieldArr); +// } } \ No newline at end of file diff --git a/admin.php b/admin.php index 8dac1c0..e4496ef 100644 --- a/admin.php +++ b/admin.php @@ -23,4 +23,4 @@ // 引入ThinkPHP入口文件 require './ThinkPHP/ThinkPHP.php'; -// 亲^_^ 后面不需要任何代码了 就是如此简单 \ No newline at end of file +// 亲^_^ 后面不需要任何代码了 就是如此简单 diff --git a/index.php b/index.php index 4610e18..23617f2 100644 --- a/index.php +++ b/index.php @@ -23,4 +23,4 @@ // 引入ThinkPHP入口文件 require './ThinkPHP/ThinkPHP.php'; -// 亲^_^ 后面不需要任何代码了 就是如此简单 \ No newline at end of file +// 亲^_^ 后面不需要任何代码了 就是如此简单