摘要: class redisInit { private $redis; //redis对象 /** * 初始化Redis * $config = array( * 'server' => '127.0.0.1' 服务器 * 'port' => '6379' 端口号 * ) * @param array 阅读全文
posted @ 2016-02-01 14:09 iDark 阅读(425) 评论(0) 推荐(0) 编辑
摘要: <?php /** * Redis 操作,支持 Master/Slave 的负载集群 * * @author V哥 */ class RedisCluster{ // 是否使用 M/S 的读写集群方案 private $_iSUSECluster = false; // Slave 句柄标记 pri 阅读全文
posted @ 2016-02-01 14:07 iDark 阅读(767) 评论(0) 推荐(0) 编辑