随笔分类 - Redis
摘要:class redisInit { private $redis; //redis对象 /** * 初始化Redis * $config = array( * 'server' => '127.0.0.1' 服务器 * 'port' => '6379' 端口号 * ) * @param array
阅读全文
摘要:<?php /** * Redis 操作,支持 Master/Slave 的负载集群 * * @author V哥 */ class RedisCluster{ // 是否使用 M/S 的读写集群方案 private $_iSUSECluster = false; // Slave 句柄标记 pri
阅读全文
摘要:phpredis是php的一个扩展,效率是相当高有链表排序功能,对创建内存级的模块业务关系很有用;以下是redis官方提供的命令使用技巧:下载地址如下:https://github.com/owlient/phpredis(支持redis 2.0.4)Redis::__construct构造函数$r...
阅读全文