Interface Synopsis
Public Methods
->__call($fname, $args)
Dispatches all commands in the Redis::$map list
->__construct()
->_prefix($value)
->_serialize($str)
->_unserialize($value)
->append($key, $value)
->auth($password)
->bgrewriteaof()
->bgsave()
->bitCount($key)
->bitOp($operation, $retKey, $key1, $key2, $key3 = NULL)
->blPop(array $keys)
->brPop(array $keys)
->brpoplpush($srcKey, $dstKey, $timeout)
->call__($fname, $args)
->clearLastError()
->client($command, ...$args = '')
->close()
->config($operation, $key, $value = '')
->connect($host, $port = 6379, $timeout = 0)
->dbSize()
->decr($key)
->decrBy($key, $value)
->del($key1, $key2 = NULL, $key3 = NULL)
->delete($key1, $key2 = NULL, $key3 = NULL)
->discard()
->dump($key)
->eval($script, array $args = array ( ), $numKeys = 0)
->evalSha($scriptSha, array $args = array ( ), $numKeys = 0)
->evaluate($script, array $args = array ( ), $numKeys = 0)
->evaluateSha($scriptSha, array $args = array ( ), $numKeys = 0)
->exec()
->exists($key)
->expire($key, $ttl)
->expireAt($key, $timestamp)
->flushAll()
->flushDB()
->get($key)
->getBit($key, $offset)
->getDBNum()
->getHost()
->getKeys($pattern)
->getLastError()
->getMultiple(array $keys)
->getOption($name)
->getPassword()
->getPersistentId()
->getPort()
->getRange($key, $start, $end)
->getReadTimeout()
->getSet($key, $value)
->getTimeout()
->hDel($key, $hashKey1, $hashKey2 = NULL, $hashKeyN = NULL)
->hExists($key, $hashKey)
->hGet($key, $hashKey)
->hGetAll($key)
->hIncrBy($key, $hashKey, $value)
->hIncrByFloat($key, $field, $increment)
->hKeys($key)
->hLen($key)
->hMGet($key, array $hashKeys)
->hMSet($key, array $pairs)
->hMset($key, $hashKeys)
->hScan($key, inout $iterator, $pattern = NULL, $count = NULL)
->hSet($key, $hashKey, $value)
->hSetNx($key, $hashKey, $value)
->hVals($key)
->incr($key)
->incrBy($key, $value)
->incrByFloat($key, $increment)
->info($option = NULL)
->isConnected()
->keys($pattern)
->lGet($key, $index)
->lGetRange($key, $start, $end)
->lIndex($key, $index)
->lInsert($key, $position, $pivot, $value)
->lLen($key)
->lPop($key)
->lPush($key, $value1, $value2 = NULL, $valueN = NULL)
->lPushx($key, $value)
->lRange($key, $start, $end)
->lRem($key, $value, $count)
->lRemove($key, $value, $count)
->lSet($key, $index, $value)
->lSize($key)
->lTrim($key, $start, $stop)
->lastSave()
->listTrim($key, $start, $stop)
->mSet(array $data)
->mSetNx(array $data)
->mget(array $array)
->migrate($host, $port, $key, $db, $timeout)
->move($key, $dbindex)
->mset(array $array)
->msetnx(array $array)
->multi()
->object($string = '', $key = '')
->open($host, $port = 6379, $timeout = 0)
->pExpire($key, $ttl)
->pExpireAt($key, $timestamp)
->pconnect($host, $port = 6379, $timeout = 0)
->persist($key)
->ping()
->pipeline()
->popen($host, $port = 6379, $timeout = 0)
->psetex($key, $ttl, $value)
->psubscribe($patterns, $callback)
->pttl($key)
->publish($channel, $message)
->rPop($key)
->rPush($key, $value1, $value2 = NULL, $valueN = NULL)
->rPushx($key, $value)
->randomKey()
->rename($srcKey, $dstKey)
->renameKey($srcKey, $dstKey)
->renameNx($srcKey, $dstKey)
->resetStat()
->restore($key, $ttl, $value)
->rpoplpush($srcKey, $dstKey)
->sAdd($key, $value1, $value2 = NULL, $valueN = NULL)
->sCard($key)
->sContains($key, $value)
->sDiff($key1, $key2, $keyN = NULL)
->sDiffStore($dstKey, $key1, $key2, $keyN = NULL)
->sGetMembers($key)
->sInter($key1, $key2, $keyN = NULL)
->sInterStore($dstKey, $key1, $key2, $keyN = NULL)
->sIsMember($key, $value)
->sMembers($key)
->sMove($srcKey, $dstKey, $member)
->sPop($key)
->sRandMember($key)
->sRem($key, $member1, $member2 = NULL, $memberN = NULL)
->sRemove($key, $member1, $member2 = NULL, $memberN = NULL)
->sScan($key, inout $iterator, $pattern = NULL, $count = NULL)
->sUnion($key1, $key2, $keyN = NULL)
->sUnionStore($dstKey, $key1, $key2, $keyN = NULL)
->save()
->scan(inout $iterator, $pattern = NULL, $count = NULL)
->script($command, ...$script)
->select($dbNumber)
->set($key, $value, $optionArrayOrExpiration = -1)
->setBit($key, $offset, $value)
->setOption($name, $value)
->setRange($key, $offset, $value)
->setTimeout($key, $ttl)
->setex($key, $ttl, $value)
->setnx($key, $value)
->slaveOf($host = '', $port = -1)
->slaveof($host = '127.0.0.1', $port = 6379)
->slowlog($command)
->sort($key, array $option = NULL)
->sortAsc($key, $pattern = NULL, $get = NULL, $start = -1, $count = -1, $store = NULL)
->sortAscAlpha($key, $pattern = NULL, $get = NULL, $start = -1, $count = -1, $store = NULL)
->sortDesc($key, $pattern = NULL, $get = NULL, $start = -1, $count = -1, $store = NULL)
->sortDescAlpha($key, $pattern = NULL, $get = NULL, $start = -1, $count = -1, $store = NULL)
->strlen($key)
->subscribe($channels, $callback)
->substr($key, $start, $end)
->time()
->ttl($key)
->type($key)
->unwatch()
->watch($key)
->zAdd($key, $score1, $value1, ...$more_scores = NULL)
->zCard($key)
->zCount($key, $start, $end)
->zDelete($key, $member1, $member2 = NULL, $memberN = NULL)
->zDeleteRangeByRank($key, $start, $end)
->zDeleteRangeByScore($key, $start, $end)
->zIncrBy($key, $value, $member)
->zInter($Output, $ZSetKeys, array $Weights = array ( ), $aggregateFunction = 'SUM')
->zInterStore($key, array $keys, array $weights = NULL, $op = '')
->zRange($key, $start, $end, $withscores = false)
->zRangeByScore($key, $start, $end, array $options = array ( ))
->zRank($key, $member)
->zRem($key, $member1, $member2 = NULL, $memberN = NULL)
->zRemRangeByRank($key, $start, $end)
->zRemRangeByScore($key, $start, $end)
->zRevRange($key, $start, $end, $withscores = false)
->zRevRangeByScore($key, $start, $end, array $options = array ( ))
->zRevRank($key, $member)
->zScan($key, inout $iterator, $pattern = NULL, $count = NULL)
->zScore($key, $member)
->zSize($key)
->zUnion($Output, $ZSetKeys, array $Weights = array ( ), $aggregateFunction = 'SUM')
->zUnionStore($key, array $keys, array $weights = NULL, $op = '')
Protected Methods
->checkConnection($auto_reconnect = true)
->doConnect($host, $port, $timeout, $persistent_id, $retry_interval, $persistent = false)
->doEval($cmd, $script, array $args, $numKeys)
->flushCallbacks($multibulk = true)
->process1Response()
->processArrayCommand($cmd, array $args)
Actually send a command to the server
->processAssocResponse(array $keys, $unser_val = true)
->processBooleanResponse()
->processClientListResponse()
->processCommand($cmd, ...$args)
->processDoubleResponse()
->processInfoResponse()
->processLongResponse()
->processMSetCommand($cmd, array $data)
->processMapResponse($unser_key, $unser_val = true)
->processQueuedResponse()
->processRawResponse()
->processSerializedResponse()
->processStringResponse()
->processTypeResponse()
->processVariantResponse()
->processVectorResponse($unser = 0)
->scanImpl($cmd, $key, inout $cursor, $pattern, $count)
->sockReadData(inout $type)
->sockReadLine()
->sortClause(array $arr, inout $using_store)
->translateVarArgs(array $args, $flags)
Process arguments for variadic functions based on $flags
->zInterUnionStore($cmd, $key, array $keys, array $weights = NULL, $op = '')
->zRangeByScoreImpl($cmd, $key, $start, $end, array $opts = NULL)
Private Methods