Ejemplo n.º 1
0
 function getUsers($users)
 {
     $keys = array();
     $ret = array();
     foreach ($users as $v) {
         $keys[] = self::$prefix . 'client_' . $v;
     }
     $info = $this->redis->mget($keys);
     foreach ($info as $v) {
         $ret[] = unserialize($v);
     }
     return $ret;
 }
Ejemplo n.º 2
0
 protected function _cmd_getNodeList($fd, $req)
 {
     $nodeList = $this->redis->sMembers(self::KEY_NODE_LIST);
     array_walk($nodeList, function (&$a) {
         $a = self::KEY_NODE_INFO . ':' . $a;
     });
     $nodeInfo = $this->redis->mget($nodeList);
     $this->sendResult($fd, 0, '', $nodeInfo);
 }