diff --git a/.travis.yml b/.travis.yml index 007bc71..6b7b15b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,16 +1,13 @@ -sudo: required - +os: linux +dist: xenial language: php php: - - '5.5' - - '5.6' - - '7.0' - - '7.1' - '7.2' - '7.3' + - '7.4' - hhvm -matrix: +jobs: allow_failures: - php: hhvm @@ -18,40 +15,40 @@ services: - docker install: - - composer install + - composer install before_install: - - docker pull cheprasov/redis-for-tests:latest; - - docker pull cheprasov/redis-cluster-for-tests:latest; - - - | - docker run -i -t -d \ - -p 127.0.0.1:6381:6381 \ - -p 127.0.0.1:6382:6382 \ - -p 127.0.0.1:6383:6383 \ - -p 127.0.0.1:6384:6384 \ - -p 127.0.0.1:6385:6385 \ - -p 127.0.0.1:6386:6386 \ - -p 127.0.0.1:6387:6387 \ - -p 127.0.0.1:6388:6388 \ - -p 127.0.0.1:6389:6389 \ - -p 127.0.0.1:6390:6390 \ - -p 127.0.0.1:6391:6391 \ - -p 127.0.0.1:6392:6392 \ - cheprasov/redis-for-tests - - - | - docker run -i -t -d \ - -p 127.0.0.1:7001:7001 \ - -p 127.0.0.1:7002:7002 \ - -p 127.0.0.1:7003:7003 \ - -p 127.0.0.1:7004:7004 \ - -p 127.0.0.1:7005:7005 \ - -p 127.0.0.1:7006:7006 \ - cheprasov/redis-cluster-for-tests - - - docker ps; - - sleep 5; + - docker pull cheprasov/redis-for-tests:latest; + - docker pull cheprasov/redis-cluster-for-tests:latest; + + - | + docker run -i -t -d \ + -p 127.0.0.1:6381:6381 \ + -p 127.0.0.1:6382:6382 \ + -p 127.0.0.1:6383:6383 \ + -p 127.0.0.1:6384:6384 \ + -p 127.0.0.1:6385:6385 \ + -p 127.0.0.1:6386:6386 \ + -p 127.0.0.1:6387:6387 \ + -p 127.0.0.1:6388:6388 \ + -p 127.0.0.1:6389:6389 \ + -p 127.0.0.1:6390:6390 \ + -p 127.0.0.1:6391:6391 \ + -p 127.0.0.1:6392:6392 \ + cheprasov/redis-for-tests + + - | + docker run -i -t -d \ + -p 127.0.0.1:7001:7001 \ + -p 127.0.0.1:7002:7002 \ + -p 127.0.0.1:7003:7003 \ + -p 127.0.0.1:7004:7004 \ + -p 127.0.0.1:7005:7005 \ + -p 127.0.0.1:7006:7006 \ + cheprasov/redis-cluster-for-tests + + - docker ps; + - sleep 5; before_script: - - if [[ $TRAVIS_PHP_VERSION = 'hhvm' ]] ; then rm ./tests/Unit/Client/AbstractRedisClientIsolatedTest.php; fi; + - if [[ $TRAVIS_PHP_VERSION = 'hhvm' ]] ; then rm ./tests/Unit/Client/AbstractRedisClientIsolatedTest.php; fi; diff --git a/COMMANDS.md b/COMMANDS.md index 55e215d..ba61f8f 100644 --- a/COMMANDS.md +++ b/COMMANDS.md @@ -2,13 +2,12 @@ ## Redis version 2.6 -### Connection -- [auth($password)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ConnectionCommandsTrait.php) -- [echo($message)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ConnectionCommandsTrait.php) -- [echoMessage($message)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ConnectionCommandsTrait.php) - alias method for `echo` -- [ping()](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ConnectionCommandsTrait.php) -- [quit()](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ConnectionCommandsTrait.php) -- [select($db)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ConnectionCommandsTrait.php) +### Transactions +- [discard()](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/TransactionsCommandsTrait.php) +- [exec()](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/TransactionsCommandsTrait.php) +- [multi()](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/TransactionsCommandsTrait.php) +- [unwatch()](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/TransactionsCommandsTrait.php) +- [watch($keys)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/TransactionsCommandsTrait.php) ### Hashes - [hdel($key, $fields)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/HashesCommandsTrait.php) @@ -25,6 +24,31 @@ - [hsetnx($key, $field, $value)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/HashesCommandsTrait.php) - [hvals($key)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/HashesCommandsTrait.php) +### Strings +- [append($key, $value)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/StringsCommandsTrait.php) +- [bitcount($key, $start = null, $end = null)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/StringsCommandsTrait.php) +- [bitop($operation, $destkey, $keys)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/StringsCommandsTrait.php) +- [decr($key)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/StringsCommandsTrait.php) +- [decrby($key, $decrement)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/StringsCommandsTrait.php) +- [get($key)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/StringsCommandsTrait.php) +- [getbit($key, $offset)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/StringsCommandsTrait.php) +- [getrange($key, $start, $end)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/StringsCommandsTrait.php) +- [substr($key, $start, $end)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/StringsCommandsTrait.php) +- [getset($key, $value)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/StringsCommandsTrait.php) +- [incr($key)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/StringsCommandsTrait.php) +- [incrby($key, $increment)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/StringsCommandsTrait.php) +- [incrbyfloat($key, $increment)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/StringsCommandsTrait.php) +- [mget($keys)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/StringsCommandsTrait.php) +- [mset(array $keyValues)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/StringsCommandsTrait.php) +- [msetnx(array $keyValues)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/StringsCommandsTrait.php) +- [psetex($key, $milliseconds, $value)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/StringsCommandsTrait.php) +- [set($key, $value, $seconds = null, $milliseconds = null, $exist = null)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/StringsCommandsTrait.php) +- [setbit($key, $offset, $bit)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/StringsCommandsTrait.php) +- [setex($key, $seconds, $value)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/StringsCommandsTrait.php) +- [setnx($key, $value)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/StringsCommandsTrait.php) +- [setrange($key, $offset, $value)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/StringsCommandsTrait.php) +- [strlen($key)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/StringsCommandsTrait.php) + ### Keys - [del($keys)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/KeysCommandsTrait.php) - [dump($key)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/KeysCommandsTrait.php) @@ -47,29 +71,31 @@ - [ttl($key)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/KeysCommandsTrait.php) - [type($key)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/KeysCommandsTrait.php) -### Lists -- [blpop($keys, $timeout)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ListsCommandsTrait.php) -- [brpop($keys, $timeout)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ListsCommandsTrait.php) -- [brpoplpush($source, $destination, $timeout)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ListsCommandsTrait.php) -- [lindex($key, $index)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ListsCommandsTrait.php) -- [linsert($key, $after = true, $pivot, $value)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ListsCommandsTrait.php) -- [llen($key)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ListsCommandsTrait.php) -- [lpop($key)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ListsCommandsTrait.php) -- [lpush($key, $values)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ListsCommandsTrait.php) -- [lpushx($key, $value)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ListsCommandsTrait.php) -- [lrange($key, $start, $stop)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ListsCommandsTrait.php) -- [lrem($key, $count, $value)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ListsCommandsTrait.php) -- [lset($key, $index, $value)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ListsCommandsTrait.php) -- [ltrim($key, $start, $stop)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ListsCommandsTrait.php) -- [rpop($key)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ListsCommandsTrait.php) -- [rpoplpush($source, $destination)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ListsCommandsTrait.php) -- [rpush($key, $values)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ListsCommandsTrait.php) -- [rpushx($key, $value)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ListsCommandsTrait.php) +### SortedSets +- [zadd($key, array $members)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/SortedSetsCommandsTrait.php) +- [zcard($key)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/SortedSetsCommandsTrait.php) +- [zcount($key, $min, $max)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/SortedSetsCommandsTrait.php) +- [zincrby($key, $increment, $member)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/SortedSetsCommandsTrait.php) +- [zinterstore($destination, $keys, $weights = null, $aggregate = null)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/SortedSetsCommandsTrait.php) +- [zrange($key, $start, $stop, $withscores = false)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/SortedSetsCommandsTrait.php) +- [zrangebyscore($key, $min, $max, $withscores = false, $limit = null)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/SortedSetsCommandsTrait.php) +- [zrank($key, $member)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/SortedSetsCommandsTrait.php) +- [zrem($key, $members)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/SortedSetsCommandsTrait.php) +- [zremrangebyrank($key, $start, $stop)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/SortedSetsCommandsTrait.php) +- [zremrangebyscore($key, $min, $max)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/SortedSetsCommandsTrait.php) +- [zrevrange($key, $start, $stop, $withscores = false)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/SortedSetsCommandsTrait.php) +- [zrevrangebyscore($key, $max, $min, $withscores = false, $limit = null)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/SortedSetsCommandsTrait.php) +- [zrevrank($key, $member)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/SortedSetsCommandsTrait.php) +- [zscore($key, $member)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/SortedSetsCommandsTrait.php) +- [zunionstore($destination, $keys, $weights = null, $aggregate = null)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/SortedSetsCommandsTrait.php) -### PubSub -- [publish($channel, $message)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/PubSubCommandsTrait.php) -- [punsubscribe($patterns = null)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/PubSubCommandsTrait.php) -- [unsubscribe($channels)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/PubSubCommandsTrait.php) +### Connection +- [auth($password)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ConnectionCommandsTrait.php) +- [echo($message)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ConnectionCommandsTrait.php) +- [echoMessage($message)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ConnectionCommandsTrait.php) - alias method for `echo` +- [ping()](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ConnectionCommandsTrait.php) +- [quit()](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ConnectionCommandsTrait.php) +- [select($db)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ConnectionCommandsTrait.php) ### Scripting - [eval($script, $keys = null, $args = null)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ScriptingCommandsTrait.php) @@ -104,6 +130,11 @@ - [sync()](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ServerCommandsTrait.php) - [time()](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ServerCommandsTrait.php) +### PubSub +- [publish($channel, $message)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/PubSubCommandsTrait.php) +- [punsubscribe($patterns = null)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/PubSubCommandsTrait.php) +- [unsubscribe($channels)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/PubSubCommandsTrait.php) + ### Sets - [sadd($key, $members)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/SetsCommandsTrait.php) - [scard($key)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/SetsCommandsTrait.php) @@ -120,63 +151,26 @@ - [sunion($keys)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/SetsCommandsTrait.php) - [sunionstore($destination, $keys)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/SetsCommandsTrait.php) -### SortedSets -- [zadd($key, array $members)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/SortedSetsCommandsTrait.php) -- [zcard($key)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/SortedSetsCommandsTrait.php) -- [zcount($key, $min, $max)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/SortedSetsCommandsTrait.php) -- [zincrby($key, $increment, $member)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/SortedSetsCommandsTrait.php) -- [zinterstore($destination, $keys, $weights = null, $aggregate = null)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/SortedSetsCommandsTrait.php) -- [zrange($key, $start, $stop, $withscores = false)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/SortedSetsCommandsTrait.php) -- [zrangebyscore($key, $min, $max, $withscores = false, $limit = null)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/SortedSetsCommandsTrait.php) -- [zrank($key, $member)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/SortedSetsCommandsTrait.php) -- [zrem($key, $members)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/SortedSetsCommandsTrait.php) -- [zremrangebyrank($key, $start, $stop)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/SortedSetsCommandsTrait.php) -- [zremrangebyscore($key, $min, $max)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/SortedSetsCommandsTrait.php) -- [zrevrange($key, $start, $stop, $withscores = false)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/SortedSetsCommandsTrait.php) -- [zrevrangebyscore($key, $max, $min, $withscores = false, $limit = null)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/SortedSetsCommandsTrait.php) -- [zrevrank($key, $member)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/SortedSetsCommandsTrait.php) -- [zscore($key, $member)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/SortedSetsCommandsTrait.php) -- [zunionstore($destination, $keys, $weights = null, $aggregate = null)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/SortedSetsCommandsTrait.php) - -### Strings -- [append($key, $value)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/StringsCommandsTrait.php) -- [bitcount($key, $start = null, $end = null)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/StringsCommandsTrait.php) -- [bitop($operation, $destkey, $keys)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/StringsCommandsTrait.php) -- [decr($key)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/StringsCommandsTrait.php) -- [decrby($key, $decrement)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/StringsCommandsTrait.php) -- [get($key)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/StringsCommandsTrait.php) -- [getbit($key, $offset)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/StringsCommandsTrait.php) -- [getrange($key, $start, $end)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/StringsCommandsTrait.php) -- [substr($key, $start, $end)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/StringsCommandsTrait.php) -- [getset($key, $value)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/StringsCommandsTrait.php) -- [incr($key)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/StringsCommandsTrait.php) -- [incrby($key, $increment)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/StringsCommandsTrait.php) -- [incrbyfloat($key, $increment)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/StringsCommandsTrait.php) -- [mget($keys)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/StringsCommandsTrait.php) -- [mset(array $keyValues)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/StringsCommandsTrait.php) -- [msetnx(array $keyValues)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/StringsCommandsTrait.php) -- [psetex($key, $milliseconds, $value)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/StringsCommandsTrait.php) -- [set($key, $value, $seconds = null, $milliseconds = null, $exist = null)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/StringsCommandsTrait.php) -- [setbit($key, $offset, $bit)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/StringsCommandsTrait.php) -- [setex($key, $seconds, $value)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/StringsCommandsTrait.php) -- [setnx($key, $value)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/StringsCommandsTrait.php) -- [setrange($key, $offset, $value)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/StringsCommandsTrait.php) -- [strlen($key)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/StringsCommandsTrait.php) - -### Transactions -- [discard()](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/TransactionsCommandsTrait.php) -- [exec()](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/TransactionsCommandsTrait.php) -- [multi()](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/TransactionsCommandsTrait.php) -- [unwatch()](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/TransactionsCommandsTrait.php) -- [watch($keys)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/TransactionsCommandsTrait.php) +### Lists +- [blpop($keys, $timeout)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ListsCommandsTrait.php) +- [brpop($keys, $timeout)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ListsCommandsTrait.php) +- [brpoplpush($source, $destination, $timeout)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ListsCommandsTrait.php) +- [lindex($key, $index)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ListsCommandsTrait.php) +- [linsert($key, $after = true, $pivot, $value)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ListsCommandsTrait.php) +- [llen($key)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ListsCommandsTrait.php) +- [lpop($key)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ListsCommandsTrait.php) +- [lpush($key, $values)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ListsCommandsTrait.php) +- [lpushx($key, $value)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ListsCommandsTrait.php) +- [lrange($key, $start, $stop)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ListsCommandsTrait.php) +- [lrem($key, $count, $value)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ListsCommandsTrait.php) +- [lset($key, $index, $value)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ListsCommandsTrait.php) +- [ltrim($key, $start, $stop)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ListsCommandsTrait.php) +- [rpop($key)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ListsCommandsTrait.php) +- [rpoplpush($source, $destination)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ListsCommandsTrait.php) +- [rpush($key, $values)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ListsCommandsTrait.php) +- [rpushx($key, $value)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x6/ListsCommandsTrait.php) ## Redis version 2.8 -### Connection -- [ping($message = null)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x8/ConnectionCommandsTrait.php) - -### Hashes -- [hscan($key, $cursor, $pattern = null, $count = null)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x8/HashesCommandsTrait.php) - ### HyperLogLog - [pfadd($key, $elements)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x8/HyperLogLogCommandsTrait.php) - [pfcount($keys)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x8/HyperLogLogCommandsTrait.php) @@ -184,6 +178,12 @@ - [pfdebug($subcommand, $key)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x8/HyperLogLogCommandsTrait.php) - [pfselftest()](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x8/HyperLogLogCommandsTrait.php) +### Hashes +- [hscan($key, $cursor, $pattern = null, $count = null)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x8/HashesCommandsTrait.php) + +### Strings +- [bitpos($key, $bit, $start = null, $end = null)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x8/StringsCommandsTrait.php) + ### Keys - [scan($cursor, $pattern = null, $count = null)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x8/KeysCommandsTrait.php) @@ -194,8 +194,15 @@ - [latencyGraph($eventName)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x8/LatencyCommandsTrait.php) - [latencyDoctor()](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x8/LatencyCommandsTrait.php) -### PubSub -- [pubsub($subcommand, $arguments = null)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x8/PubSubCommandsTrait.php) +### SortedSets +- [zlexcount($key, $min, $max)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x8/SortedSetsCommandsTrait.php) +- [zrangebylex($key, $min, $max, $limit = null)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x8/SortedSetsCommandsTrait.php) +- [zremrangebylex($key, $min, $max)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x8/SortedSetsCommandsTrait.php) +- [zrevrangebylex($key, $max, $min, $limit = null)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x8/SortedSetsCommandsTrait.php) +- [zscan($key, $cursor, $pattern = null, $count = null)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x8/SortedSetsCommandsTrait.php) + +### Connection +- [ping($message = null)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x8/ConnectionCommandsTrait.php) ### Server - [command()](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x8/ServerCommandsTrait.php) @@ -205,24 +212,26 @@ - [configRewrite()](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x8/ServerCommandsTrait.php) - [role()](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x8/ServerCommandsTrait.php) +### PubSub +- [pubsub($subcommand, $arguments = null)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x8/PubSubCommandsTrait.php) + ### Sets - [sscan($key, $cursor, $pattern = null, $count = null)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x8/SetsCommandsTrait.php) - -### SortedSets -- [zlexcount($key, $min, $max)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x8/SortedSetsCommandsTrait.php) -- [zrangebylex($key, $min, $max, $limit = null)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x8/SortedSetsCommandsTrait.php) -- [zremrangebylex($key, $min, $max)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x8/SortedSetsCommandsTrait.php) -- [zrevrangebylex($key, $max, $min, $limit = null)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x8/SortedSetsCommandsTrait.php) -- [zscan($key, $cursor, $pattern = null, $count = null)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x8/SortedSetsCommandsTrait.php) - -### Strings -- [bitpos($key, $bit, $start = null, $end = null)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x8/StringsCommandsTrait.php) ## Redis version 2.9 ### Server - [clientPause($timeout)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version2x9/ServerCommandsTrait.php) ## Redis version 3.0 +### Keys +- [exists($keys)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version3x0/KeysCommandsTrait.php) +- [migrate($host, $port, $key, $destinationDb, $timeout, $copy = false, $replace = false)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version3x0/KeysCommandsTrait.php) +- [restore($key, $ttl, $serializedValue, $replace = false)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version3x0/KeysCommandsTrait.php) +- [wait($numslaves, $timeout)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version3x0/KeysCommandsTrait.php) + +### SortedSets +- [zadd($key, array $members, $nx = null, $ch = false, $incr = false)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version3x0/SortedSetsCommandsTrait.php) + ### Cluster - [clusterAddslots($slots)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version3x0/ClusterCommandsTrait.php) - [clusterCountFailureReports($nodeId)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version3x0/ClusterCommandsTrait.php) @@ -244,29 +253,14 @@ - [clusterSlots()](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version3x0/ClusterCommandsTrait.php) - [readonly()](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version3x0/ClusterCommandsTrait.php) - [readwrite()](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version3x0/ClusterCommandsTrait.php) - -### Keys -- [exists($keys)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version3x0/KeysCommandsTrait.php) -- [migrate($host, $port, $key, $destinationDb, $timeout, $copy = false, $replace = false)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version3x0/KeysCommandsTrait.php) -- [restore($key, $ttl, $serializedValue, $replace = false)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version3x0/KeysCommandsTrait.php) -- [wait($numslaves, $timeout)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version3x0/KeysCommandsTrait.php) - -### SortedSets -- [zadd($key, array $members, $nx = null, $ch = false, $incr = false)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version3x0/SortedSetsCommandsTrait.php) ## Redis version 3.2 -### Geo -- [geoadd($key, array $members)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version3x2/GeoCommandsTrait.php) -- [geodist($key, $member1, $member2, $unit = null)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version3x2/GeoCommandsTrait.php) -- [geohash($key, $members)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version3x2/GeoCommandsTrait.php) -- [geopos($key, $members)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version3x2/GeoCommandsTrait.php) -- [georadius($key, $longitude, $latitude, $radius, $unit, $withcoord = false, $withdist = false, $withhash = false, $count = null, $asc = null, $storeKey = null, $storeDist = false)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version3x2/GeoCommandsTrait.php) -- [georadiusbymember($key, $member, $radius, $unit, $withcoord = false, $withdist = false, $withhash = false, $count = null, $asc = null, $storeKey = null, $storeDist = false)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version3x2/GeoCommandsTrait.php) -- [geodel($key, $members)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version3x2/GeoCommandsTrait.php) - ### Hashes - [hstrlen($key, $field)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version3x2/HashesCommandsTrait.php) +### Strings +- [bitfield($key, array $subcommands)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version3x2/StringsCommandsTrait.php) + ### Keys - [migrate($host, $port, $keys, $destinationDb, $timeout, $copy = false, $replace = false)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version3x2/KeysCommandsTrait.php) - [touch($keys)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version3x2/KeysCommandsTrait.php) @@ -278,18 +272,28 @@ - [clientReply($param)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version3x2/ServerCommandsTrait.php) - [debugHelp()](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version3x2/ServerCommandsTrait.php) +### Geo +- [geoadd($key, array $members)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version3x2/GeoCommandsTrait.php) +- [geodist($key, $member1, $member2, $unit = null)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version3x2/GeoCommandsTrait.php) +- [geohash($key, $members)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version3x2/GeoCommandsTrait.php) +- [geopos($key, $members)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version3x2/GeoCommandsTrait.php) +- [georadius($key, $longitude, $latitude, $radius, $unit, $withcoord = false, $withdist = false, $withhash = false, $count = null, $asc = null, $storeKey = null, $storeDist = false)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version3x2/GeoCommandsTrait.php) +- [georadiusbymember($key, $member, $radius, $unit, $withcoord = false, $withdist = false, $withhash = false, $count = null, $asc = null, $storeKey = null, $storeDist = false)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version3x2/GeoCommandsTrait.php) +- [geodel($key, $members)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version3x2/GeoCommandsTrait.php) + ### Sets - [spop($key, $count = null)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version3x2/SetsCommandsTrait.php) - -### Strings -- [bitfield($key, array $subcommands)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version3x2/StringsCommandsTrait.php) ## Redis version 4.0 +### Keys +- [unlink($keys)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version4x0/KeysCommandsTrait.php) + ### Connection - [swapdb($db1, $db2)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version4x0/ConnectionCommandsTrait.php) -### Keys -- [unlink($keys)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version4x0/KeysCommandsTrait.php) +### Server +- [flushall($async = false)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version4x0/ServerCommandsTrait.php) +- [flushdb($async = false)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version4x0/ServerCommandsTrait.php) ### Memory - [memoryDoctor()](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version4x0/MemoryCommandsTrait.php) @@ -298,22 +302,8 @@ - [memoryStats()](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version4x0/MemoryCommandsTrait.php) - [memoryPurge()](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version4x0/MemoryCommandsTrait.php) - [memoryMallocStats()](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version4x0/MemoryCommandsTrait.php) - -### Server -- [flushall($async = false)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version4x0/ServerCommandsTrait.php) -- [flushdb($async = false)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version4x0/ServerCommandsTrait.php) ## Redis version 5.0 -### Server -- [lolwut($param1 = null, $param2 = null, $param3 = null)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version5x0/ServerCommandsTrait.php) -- [replicaof($host, $port)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version5x0/ServerCommandsTrait.php) - -### SortedSets -- [bzpopmax($keys, $timeout = 0)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version5x0/SortedSetsCommandsTrait.php) -- [bzpopmin($keys, $timeout = 0)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version5x0/SortedSetsCommandsTrait.php) -- [zpopmax($key, $count = null)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version5x0/SortedSetsCommandsTrait.php) -- [zpopmin($key, $count = null)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version5x0/SortedSetsCommandsTrait.php) - ### Streams - [xack($key, $group, $ids)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version5x0/StreamsCommandsTrait.php) - [xadd($key, $id, $fieldStrings, $maxlen = null)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version5x0/StreamsCommandsTrait.php) @@ -334,3 +324,13 @@ - [xtrim($key, $count, $withTilde = false)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version5x0/StreamsCommandsTrait.php) - [xsetid($stream, $groupname, $id)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version5x0/StreamsCommandsTrait.php) +### SortedSets +- [bzpopmax($keys, $timeout = 0)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version5x0/SortedSetsCommandsTrait.php) +- [bzpopmin($keys, $timeout = 0)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version5x0/SortedSetsCommandsTrait.php) +- [zpopmax($key, $count = null)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version5x0/SortedSetsCommandsTrait.php) +- [zpopmin($key, $count = null)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version5x0/SortedSetsCommandsTrait.php) + +### Server +- [lolwut($param1 = null, $param2 = null, $param3 = null)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version5x0/ServerCommandsTrait.php) +- [replicaof($host, $port)](https://github.com/cheprasov/php-redis-client/blob/master/src/RedisClient/Command/Traits/Version5x0/ServerCommandsTrait.php) + diff --git a/composer.json b/composer.json index 36c5a69..d480e73 100644 --- a/composer.json +++ b/composer.json @@ -16,11 +16,16 @@ "RedisClient\\": "src" } }, + "autoload-dev": { + "psr-4": { + "Test\\": "tests/" + } + }, "require": { - "php": ">=5.5" + "php": ">=7.2" }, "require-dev": { - "phpunit/phpunit": "4.8.*", + "phpunit/phpunit": "^8.5.5", "cheprasov/php-extra-mocks": "^1.0.0" } } diff --git a/phpunit.xml b/phpunit.xml index f849b2b..56547a5 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -12,11 +12,8 @@ stopOnIncomplete = "false" stopOnSkipped = "false" bootstrap = "vendor/autoload.php" - syntaxCheck = "true" verbose = "true" - checkForUnintentionallyCoveredCode = "false" beStrictAboutOutputDuringTests = "false" - beStrictAboutTestSize = "true" > @@ -26,9 +23,9 @@ ./tests/Unit/ + ./tests/Integration/ ./tests/Integration/BaseVersionTest.php ./tests/Integration/ClusterVersionTest.php - ./tests/Integration/ diff --git a/src/RedisClient/Pipeline/Version/Pipeline2x6.php b/src/RedisClient/Pipeline/Version/Pipeline2x6.php index cd30a56..622b4b7 100644 --- a/src/RedisClient/Pipeline/Version/Pipeline2x6.php +++ b/src/RedisClient/Pipeline/Version/Pipeline2x6.php @@ -16,13 +16,12 @@ /** * Redis version 2.6 * - * Connection - * @method Pipeline2x6 auth($password) - * @method Pipeline2x6 echo($message) - * @method Pipeline2x6 echoMessage($message) - alias method for reversed word - * @method Pipeline2x6 ping() - * @method Pipeline2x6 quit() - * @method Pipeline2x6 select($db) + * Transactions + * @method Pipeline2x6 discard() + * @method Pipeline2x6 exec() + * @method Pipeline2x6 multi() + * @method Pipeline2x6 unwatch() + * @method Pipeline2x6 watch($keys) * * Hashes * @method Pipeline2x6 hdel($key, $fields) @@ -39,6 +38,31 @@ * @method Pipeline2x6 hsetnx($key, $field, $value) * @method Pipeline2x6 hvals($key) * + * Strings + * @method Pipeline2x6 append($key, $value) + * @method Pipeline2x6 bitcount($key, $start = null, $end = null) + * @method Pipeline2x6 bitop($operation, $destkey, $keys) + * @method Pipeline2x6 decr($key) + * @method Pipeline2x6 decrby($key, $decrement) + * @method Pipeline2x6 get($key) + * @method Pipeline2x6 getbit($key, $offset) + * @method Pipeline2x6 getrange($key, $start, $end) + * @method Pipeline2x6 substr($key, $start, $end) + * @method Pipeline2x6 getset($key, $value) + * @method Pipeline2x6 incr($key) + * @method Pipeline2x6 incrby($key, $increment) + * @method Pipeline2x6 incrbyfloat($key, $increment) + * @method Pipeline2x6 mget($keys) + * @method Pipeline2x6 mset(array $keyValues) + * @method Pipeline2x6 msetnx(array $keyValues) + * @method Pipeline2x6 psetex($key, $milliseconds, $value) + * @method Pipeline2x6 set($key, $value, $seconds = null, $milliseconds = null, $exist = null) + * @method Pipeline2x6 setbit($key, $offset, $bit) + * @method Pipeline2x6 setex($key, $seconds, $value) + * @method Pipeline2x6 setnx($key, $value) + * @method Pipeline2x6 setrange($key, $offset, $value) + * @method Pipeline2x6 strlen($key) + * * Keys * @method Pipeline2x6 del($keys) * @method Pipeline2x6 dump($key) @@ -61,29 +85,31 @@ * @method Pipeline2x6 ttl($key) * @method Pipeline2x6 type($key) * - * Lists - * @method Pipeline2x6 blpop($keys, $timeout) - * @method Pipeline2x6 brpop($keys, $timeout) - * @method Pipeline2x6 brpoplpush($source, $destination, $timeout) - * @method Pipeline2x6 lindex($key, $index) - * @method Pipeline2x6 linsert($key, $after = true, $pivot, $value) - * @method Pipeline2x6 llen($key) - * @method Pipeline2x6 lpop($key) - * @method Pipeline2x6 lpush($key, $values) - * @method Pipeline2x6 lpushx($key, $value) - * @method Pipeline2x6 lrange($key, $start, $stop) - * @method Pipeline2x6 lrem($key, $count, $value) - * @method Pipeline2x6 lset($key, $index, $value) - * @method Pipeline2x6 ltrim($key, $start, $stop) - * @method Pipeline2x6 rpop($key) - * @method Pipeline2x6 rpoplpush($source, $destination) - * @method Pipeline2x6 rpush($key, $values) - * @method Pipeline2x6 rpushx($key, $value) + * SortedSets + * @method Pipeline2x6 zadd($key, array $members) + * @method Pipeline2x6 zcard($key) + * @method Pipeline2x6 zcount($key, $min, $max) + * @method Pipeline2x6 zincrby($key, $increment, $member) + * @method Pipeline2x6 zinterstore($destination, $keys, $weights = null, $aggregate = null) + * @method Pipeline2x6 zrange($key, $start, $stop, $withscores = false) + * @method Pipeline2x6 zrangebyscore($key, $min, $max, $withscores = false, $limit = null) + * @method Pipeline2x6 zrank($key, $member) + * @method Pipeline2x6 zrem($key, $members) + * @method Pipeline2x6 zremrangebyrank($key, $start, $stop) + * @method Pipeline2x6 zremrangebyscore($key, $min, $max) + * @method Pipeline2x6 zrevrange($key, $start, $stop, $withscores = false) + * @method Pipeline2x6 zrevrangebyscore($key, $max, $min, $withscores = false, $limit = null) + * @method Pipeline2x6 zrevrank($key, $member) + * @method Pipeline2x6 zscore($key, $member) + * @method Pipeline2x6 zunionstore($destination, $keys, $weights = null, $aggregate = null) * - * PubSub - * @method Pipeline2x6 publish($channel, $message) - * @method Pipeline2x6 punsubscribe($patterns = null) - * @method Pipeline2x6 unsubscribe($channels) + * Connection + * @method Pipeline2x6 auth($password) + * @method Pipeline2x6 echo($message) + * @method Pipeline2x6 echoMessage($message) - alias method for reversed word + * @method Pipeline2x6 ping() + * @method Pipeline2x6 quit() + * @method Pipeline2x6 select($db) * * Scripting * @method Pipeline2x6 eval($script, $keys = null, $args = null) @@ -118,6 +144,11 @@ * @method Pipeline2x6 sync() * @method Pipeline2x6 time() * + * PubSub + * @method Pipeline2x6 publish($channel, $message) + * @method Pipeline2x6 punsubscribe($patterns = null) + * @method Pipeline2x6 unsubscribe($channels) + * * Sets * @method Pipeline2x6 sadd($key, $members) * @method Pipeline2x6 scard($key) @@ -134,55 +165,24 @@ * @method Pipeline2x6 sunion($keys) * @method Pipeline2x6 sunionstore($destination, $keys) * - * SortedSets - * @method Pipeline2x6 zadd($key, array $members) - * @method Pipeline2x6 zcard($key) - * @method Pipeline2x6 zcount($key, $min, $max) - * @method Pipeline2x6 zincrby($key, $increment, $member) - * @method Pipeline2x6 zinterstore($destination, $keys, $weights = null, $aggregate = null) - * @method Pipeline2x6 zrange($key, $start, $stop, $withscores = false) - * @method Pipeline2x6 zrangebyscore($key, $min, $max, $withscores = false, $limit = null) - * @method Pipeline2x6 zrank($key, $member) - * @method Pipeline2x6 zrem($key, $members) - * @method Pipeline2x6 zremrangebyrank($key, $start, $stop) - * @method Pipeline2x6 zremrangebyscore($key, $min, $max) - * @method Pipeline2x6 zrevrange($key, $start, $stop, $withscores = false) - * @method Pipeline2x6 zrevrangebyscore($key, $max, $min, $withscores = false, $limit = null) - * @method Pipeline2x6 zrevrank($key, $member) - * @method Pipeline2x6 zscore($key, $member) - * @method Pipeline2x6 zunionstore($destination, $keys, $weights = null, $aggregate = null) - * - * Strings - * @method Pipeline2x6 append($key, $value) - * @method Pipeline2x6 bitcount($key, $start = null, $end = null) - * @method Pipeline2x6 bitop($operation, $destkey, $keys) - * @method Pipeline2x6 decr($key) - * @method Pipeline2x6 decrby($key, $decrement) - * @method Pipeline2x6 get($key) - * @method Pipeline2x6 getbit($key, $offset) - * @method Pipeline2x6 getrange($key, $start, $end) - * @method Pipeline2x6 substr($key, $start, $end) - * @method Pipeline2x6 getset($key, $value) - * @method Pipeline2x6 incr($key) - * @method Pipeline2x6 incrby($key, $increment) - * @method Pipeline2x6 incrbyfloat($key, $increment) - * @method Pipeline2x6 mget($keys) - * @method Pipeline2x6 mset(array $keyValues) - * @method Pipeline2x6 msetnx(array $keyValues) - * @method Pipeline2x6 psetex($key, $milliseconds, $value) - * @method Pipeline2x6 set($key, $value, $seconds = null, $milliseconds = null, $exist = null) - * @method Pipeline2x6 setbit($key, $offset, $bit) - * @method Pipeline2x6 setex($key, $seconds, $value) - * @method Pipeline2x6 setnx($key, $value) - * @method Pipeline2x6 setrange($key, $offset, $value) - * @method Pipeline2x6 strlen($key) - * - * Transactions - * @method Pipeline2x6 discard() - * @method Pipeline2x6 exec() - * @method Pipeline2x6 multi() - * @method Pipeline2x6 unwatch() - * @method Pipeline2x6 watch($keys) + * Lists + * @method Pipeline2x6 blpop($keys, $timeout) + * @method Pipeline2x6 brpop($keys, $timeout) + * @method Pipeline2x6 brpoplpush($source, $destination, $timeout) + * @method Pipeline2x6 lindex($key, $index) + * @method Pipeline2x6 linsert($key, $after = true, $pivot, $value) + * @method Pipeline2x6 llen($key) + * @method Pipeline2x6 lpop($key) + * @method Pipeline2x6 lpush($key, $values) + * @method Pipeline2x6 lpushx($key, $value) + * @method Pipeline2x6 lrange($key, $start, $stop) + * @method Pipeline2x6 lrem($key, $count, $value) + * @method Pipeline2x6 lset($key, $index, $value) + * @method Pipeline2x6 ltrim($key, $start, $stop) + * @method Pipeline2x6 rpop($key) + * @method Pipeline2x6 rpoplpush($source, $destination) + * @method Pipeline2x6 rpush($key, $values) + * @method Pipeline2x6 rpushx($key, $value) * */ class Pipeline2x6 extends AbstractPipeline { diff --git a/src/RedisClient/Pipeline/Version/Pipeline2x8.php b/src/RedisClient/Pipeline/Version/Pipeline2x8.php index 902dd4f..ef660f8 100644 --- a/src/RedisClient/Pipeline/Version/Pipeline2x8.php +++ b/src/RedisClient/Pipeline/Version/Pipeline2x8.php @@ -16,13 +16,12 @@ /** * Redis version 2.6 * - * Connection - * @method Pipeline2x8 auth($password) - * @method Pipeline2x8 echo($message) - * @method Pipeline2x8 echoMessage($message) - alias method for reversed word - * -method Pipeline2x8 ping() - * @method Pipeline2x8 quit() - * @method Pipeline2x8 select($db) + * Transactions + * @method Pipeline2x8 discard() + * @method Pipeline2x8 exec() + * @method Pipeline2x8 multi() + * @method Pipeline2x8 unwatch() + * @method Pipeline2x8 watch($keys) * * Hashes * @method Pipeline2x8 hdel($key, $fields) @@ -39,6 +38,31 @@ * @method Pipeline2x8 hsetnx($key, $field, $value) * @method Pipeline2x8 hvals($key) * + * Strings + * @method Pipeline2x8 append($key, $value) + * @method Pipeline2x8 bitcount($key, $start = null, $end = null) + * @method Pipeline2x8 bitop($operation, $destkey, $keys) + * @method Pipeline2x8 decr($key) + * @method Pipeline2x8 decrby($key, $decrement) + * @method Pipeline2x8 get($key) + * @method Pipeline2x8 getbit($key, $offset) + * @method Pipeline2x8 getrange($key, $start, $end) + * @method Pipeline2x8 substr($key, $start, $end) + * @method Pipeline2x8 getset($key, $value) + * @method Pipeline2x8 incr($key) + * @method Pipeline2x8 incrby($key, $increment) + * @method Pipeline2x8 incrbyfloat($key, $increment) + * @method Pipeline2x8 mget($keys) + * @method Pipeline2x8 mset(array $keyValues) + * @method Pipeline2x8 msetnx(array $keyValues) + * @method Pipeline2x8 psetex($key, $milliseconds, $value) + * @method Pipeline2x8 set($key, $value, $seconds = null, $milliseconds = null, $exist = null) + * @method Pipeline2x8 setbit($key, $offset, $bit) + * @method Pipeline2x8 setex($key, $seconds, $value) + * @method Pipeline2x8 setnx($key, $value) + * @method Pipeline2x8 setrange($key, $offset, $value) + * @method Pipeline2x8 strlen($key) + * * Keys * @method Pipeline2x8 del($keys) * @method Pipeline2x8 dump($key) @@ -61,29 +85,31 @@ * @method Pipeline2x8 ttl($key) * @method Pipeline2x8 type($key) * - * Lists - * @method Pipeline2x8 blpop($keys, $timeout) - * @method Pipeline2x8 brpop($keys, $timeout) - * @method Pipeline2x8 brpoplpush($source, $destination, $timeout) - * @method Pipeline2x8 lindex($key, $index) - * @method Pipeline2x8 linsert($key, $after = true, $pivot, $value) - * @method Pipeline2x8 llen($key) - * @method Pipeline2x8 lpop($key) - * @method Pipeline2x8 lpush($key, $values) - * @method Pipeline2x8 lpushx($key, $value) - * @method Pipeline2x8 lrange($key, $start, $stop) - * @method Pipeline2x8 lrem($key, $count, $value) - * @method Pipeline2x8 lset($key, $index, $value) - * @method Pipeline2x8 ltrim($key, $start, $stop) - * @method Pipeline2x8 rpop($key) - * @method Pipeline2x8 rpoplpush($source, $destination) - * @method Pipeline2x8 rpush($key, $values) - * @method Pipeline2x8 rpushx($key, $value) + * SortedSets + * @method Pipeline2x8 zadd($key, array $members) + * @method Pipeline2x8 zcard($key) + * @method Pipeline2x8 zcount($key, $min, $max) + * @method Pipeline2x8 zincrby($key, $increment, $member) + * @method Pipeline2x8 zinterstore($destination, $keys, $weights = null, $aggregate = null) + * @method Pipeline2x8 zrange($key, $start, $stop, $withscores = false) + * @method Pipeline2x8 zrangebyscore($key, $min, $max, $withscores = false, $limit = null) + * @method Pipeline2x8 zrank($key, $member) + * @method Pipeline2x8 zrem($key, $members) + * @method Pipeline2x8 zremrangebyrank($key, $start, $stop) + * @method Pipeline2x8 zremrangebyscore($key, $min, $max) + * @method Pipeline2x8 zrevrange($key, $start, $stop, $withscores = false) + * @method Pipeline2x8 zrevrangebyscore($key, $max, $min, $withscores = false, $limit = null) + * @method Pipeline2x8 zrevrank($key, $member) + * @method Pipeline2x8 zscore($key, $member) + * @method Pipeline2x8 zunionstore($destination, $keys, $weights = null, $aggregate = null) * - * PubSub - * @method Pipeline2x8 publish($channel, $message) - * @method Pipeline2x8 punsubscribe($patterns = null) - * @method Pipeline2x8 unsubscribe($channels) + * Connection + * @method Pipeline2x8 auth($password) + * @method Pipeline2x8 echo($message) + * @method Pipeline2x8 echoMessage($message) - alias method for reversed word + * -method Pipeline2x8 ping() + * @method Pipeline2x8 quit() + * @method Pipeline2x8 select($db) * * Scripting * @method Pipeline2x8 eval($script, $keys = null, $args = null) @@ -118,6 +144,11 @@ * @method Pipeline2x8 sync() * @method Pipeline2x8 time() * + * PubSub + * @method Pipeline2x8 publish($channel, $message) + * @method Pipeline2x8 punsubscribe($patterns = null) + * @method Pipeline2x8 unsubscribe($channels) + * * Sets * @method Pipeline2x8 sadd($key, $members) * @method Pipeline2x8 scard($key) @@ -134,64 +165,27 @@ * @method Pipeline2x8 sunion($keys) * @method Pipeline2x8 sunionstore($destination, $keys) * - * SortedSets - * @method Pipeline2x8 zadd($key, array $members) - * @method Pipeline2x8 zcard($key) - * @method Pipeline2x8 zcount($key, $min, $max) - * @method Pipeline2x8 zincrby($key, $increment, $member) - * @method Pipeline2x8 zinterstore($destination, $keys, $weights = null, $aggregate = null) - * @method Pipeline2x8 zrange($key, $start, $stop, $withscores = false) - * @method Pipeline2x8 zrangebyscore($key, $min, $max, $withscores = false, $limit = null) - * @method Pipeline2x8 zrank($key, $member) - * @method Pipeline2x8 zrem($key, $members) - * @method Pipeline2x8 zremrangebyrank($key, $start, $stop) - * @method Pipeline2x8 zremrangebyscore($key, $min, $max) - * @method Pipeline2x8 zrevrange($key, $start, $stop, $withscores = false) - * @method Pipeline2x8 zrevrangebyscore($key, $max, $min, $withscores = false, $limit = null) - * @method Pipeline2x8 zrevrank($key, $member) - * @method Pipeline2x8 zscore($key, $member) - * @method Pipeline2x8 zunionstore($destination, $keys, $weights = null, $aggregate = null) - * - * Strings - * @method Pipeline2x8 append($key, $value) - * @method Pipeline2x8 bitcount($key, $start = null, $end = null) - * @method Pipeline2x8 bitop($operation, $destkey, $keys) - * @method Pipeline2x8 decr($key) - * @method Pipeline2x8 decrby($key, $decrement) - * @method Pipeline2x8 get($key) - * @method Pipeline2x8 getbit($key, $offset) - * @method Pipeline2x8 getrange($key, $start, $end) - * @method Pipeline2x8 substr($key, $start, $end) - * @method Pipeline2x8 getset($key, $value) - * @method Pipeline2x8 incr($key) - * @method Pipeline2x8 incrby($key, $increment) - * @method Pipeline2x8 incrbyfloat($key, $increment) - * @method Pipeline2x8 mget($keys) - * @method Pipeline2x8 mset(array $keyValues) - * @method Pipeline2x8 msetnx(array $keyValues) - * @method Pipeline2x8 psetex($key, $milliseconds, $value) - * @method Pipeline2x8 set($key, $value, $seconds = null, $milliseconds = null, $exist = null) - * @method Pipeline2x8 setbit($key, $offset, $bit) - * @method Pipeline2x8 setex($key, $seconds, $value) - * @method Pipeline2x8 setnx($key, $value) - * @method Pipeline2x8 setrange($key, $offset, $value) - * @method Pipeline2x8 strlen($key) - * - * Transactions - * @method Pipeline2x8 discard() - * @method Pipeline2x8 exec() - * @method Pipeline2x8 multi() - * @method Pipeline2x8 unwatch() - * @method Pipeline2x8 watch($keys) + * Lists + * @method Pipeline2x8 blpop($keys, $timeout) + * @method Pipeline2x8 brpop($keys, $timeout) + * @method Pipeline2x8 brpoplpush($source, $destination, $timeout) + * @method Pipeline2x8 lindex($key, $index) + * @method Pipeline2x8 linsert($key, $after = true, $pivot, $value) + * @method Pipeline2x8 llen($key) + * @method Pipeline2x8 lpop($key) + * @method Pipeline2x8 lpush($key, $values) + * @method Pipeline2x8 lpushx($key, $value) + * @method Pipeline2x8 lrange($key, $start, $stop) + * @method Pipeline2x8 lrem($key, $count, $value) + * @method Pipeline2x8 lset($key, $index, $value) + * @method Pipeline2x8 ltrim($key, $start, $stop) + * @method Pipeline2x8 rpop($key) + * @method Pipeline2x8 rpoplpush($source, $destination) + * @method Pipeline2x8 rpush($key, $values) + * @method Pipeline2x8 rpushx($key, $value) * * Redis version 2.8 * - * Connection - * @method Pipeline2x8 ping($message = null) - * - * Hashes - * @method Pipeline2x8 hscan($key, $cursor, $pattern = null, $count = null) - * * HyperLogLog * @method Pipeline2x8 pfadd($key, $elements) * @method Pipeline2x8 pfcount($keys) @@ -199,6 +193,12 @@ * @method Pipeline2x8 pfdebug($subcommand, $key) * @method Pipeline2x8 pfselftest() * + * Hashes + * @method Pipeline2x8 hscan($key, $cursor, $pattern = null, $count = null) + * + * Strings + * @method Pipeline2x8 bitpos($key, $bit, $start = null, $end = null) + * * Keys * @method Pipeline2x8 scan($cursor, $pattern = null, $count = null) * @@ -209,8 +209,15 @@ * @method Pipeline2x8 latencyGraph($eventName) * @method Pipeline2x8 latencyDoctor() * - * PubSub - * @method Pipeline2x8 pubsub($subcommand, $arguments = null) + * SortedSets + * @method Pipeline2x8 zlexcount($key, $min, $max) + * @method Pipeline2x8 zrangebylex($key, $min, $max, $limit = null) + * @method Pipeline2x8 zremrangebylex($key, $min, $max) + * @method Pipeline2x8 zrevrangebylex($key, $max, $min, $limit = null) + * @method Pipeline2x8 zscan($key, $cursor, $pattern = null, $count = null) + * + * Connection + * @method Pipeline2x8 ping($message = null) * * Server * @method Pipeline2x8 command() @@ -220,18 +227,11 @@ * @method Pipeline2x8 configRewrite() * @method Pipeline2x8 role() * + * PubSub + * @method Pipeline2x8 pubsub($subcommand, $arguments = null) + * * Sets * @method Pipeline2x8 sscan($key, $cursor, $pattern = null, $count = null) - * - * SortedSets - * @method Pipeline2x8 zlexcount($key, $min, $max) - * @method Pipeline2x8 zrangebylex($key, $min, $max, $limit = null) - * @method Pipeline2x8 zremrangebylex($key, $min, $max) - * @method Pipeline2x8 zrevrangebylex($key, $max, $min, $limit = null) - * @method Pipeline2x8 zscan($key, $cursor, $pattern = null, $count = null) - * - * Strings - * @method Pipeline2x8 bitpos($key, $bit, $start = null, $end = null) * */ class Pipeline2x8 extends AbstractPipeline { diff --git a/src/RedisClient/Pipeline/Version/Pipeline3x0.php b/src/RedisClient/Pipeline/Version/Pipeline3x0.php index e186929..e5cb618 100644 --- a/src/RedisClient/Pipeline/Version/Pipeline3x0.php +++ b/src/RedisClient/Pipeline/Version/Pipeline3x0.php @@ -16,13 +16,12 @@ /** * Redis version 2.6 * - * Connection - * @method Pipeline3x0 auth($password) - * @method Pipeline3x0 echo($message) - * @method Pipeline3x0 echoMessage($message) - alias method for reversed word - * -method Pipeline3x0 ping() - * @method Pipeline3x0 quit() - * @method Pipeline3x0 select($db) + * Transactions + * @method Pipeline3x0 discard() + * @method Pipeline3x0 exec() + * @method Pipeline3x0 multi() + * @method Pipeline3x0 unwatch() + * @method Pipeline3x0 watch($keys) * * Hashes * @method Pipeline3x0 hdel($key, $fields) @@ -39,6 +38,31 @@ * @method Pipeline3x0 hsetnx($key, $field, $value) * @method Pipeline3x0 hvals($key) * + * Strings + * @method Pipeline3x0 append($key, $value) + * @method Pipeline3x0 bitcount($key, $start = null, $end = null) + * @method Pipeline3x0 bitop($operation, $destkey, $keys) + * @method Pipeline3x0 decr($key) + * @method Pipeline3x0 decrby($key, $decrement) + * @method Pipeline3x0 get($key) + * @method Pipeline3x0 getbit($key, $offset) + * @method Pipeline3x0 getrange($key, $start, $end) + * @method Pipeline3x0 substr($key, $start, $end) + * @method Pipeline3x0 getset($key, $value) + * @method Pipeline3x0 incr($key) + * @method Pipeline3x0 incrby($key, $increment) + * @method Pipeline3x0 incrbyfloat($key, $increment) + * @method Pipeline3x0 mget($keys) + * @method Pipeline3x0 mset(array $keyValues) + * @method Pipeline3x0 msetnx(array $keyValues) + * @method Pipeline3x0 psetex($key, $milliseconds, $value) + * @method Pipeline3x0 set($key, $value, $seconds = null, $milliseconds = null, $exist = null) + * @method Pipeline3x0 setbit($key, $offset, $bit) + * @method Pipeline3x0 setex($key, $seconds, $value) + * @method Pipeline3x0 setnx($key, $value) + * @method Pipeline3x0 setrange($key, $offset, $value) + * @method Pipeline3x0 strlen($key) + * * Keys * @method Pipeline3x0 del($keys) * @method Pipeline3x0 dump($key) @@ -61,29 +85,31 @@ * @method Pipeline3x0 ttl($key) * @method Pipeline3x0 type($key) * - * Lists - * @method Pipeline3x0 blpop($keys, $timeout) - * @method Pipeline3x0 brpop($keys, $timeout) - * @method Pipeline3x0 brpoplpush($source, $destination, $timeout) - * @method Pipeline3x0 lindex($key, $index) - * @method Pipeline3x0 linsert($key, $after = true, $pivot, $value) - * @method Pipeline3x0 llen($key) - * @method Pipeline3x0 lpop($key) - * @method Pipeline3x0 lpush($key, $values) - * @method Pipeline3x0 lpushx($key, $value) - * @method Pipeline3x0 lrange($key, $start, $stop) - * @method Pipeline3x0 lrem($key, $count, $value) - * @method Pipeline3x0 lset($key, $index, $value) - * @method Pipeline3x0 ltrim($key, $start, $stop) - * @method Pipeline3x0 rpop($key) - * @method Pipeline3x0 rpoplpush($source, $destination) - * @method Pipeline3x0 rpush($key, $values) - * @method Pipeline3x0 rpushx($key, $value) + * SortedSets + * -method Pipeline3x0 zadd($key, array $members) + * @method Pipeline3x0 zcard($key) + * @method Pipeline3x0 zcount($key, $min, $max) + * @method Pipeline3x0 zincrby($key, $increment, $member) + * @method Pipeline3x0 zinterstore($destination, $keys, $weights = null, $aggregate = null) + * @method Pipeline3x0 zrange($key, $start, $stop, $withscores = false) + * @method Pipeline3x0 zrangebyscore($key, $min, $max, $withscores = false, $limit = null) + * @method Pipeline3x0 zrank($key, $member) + * @method Pipeline3x0 zrem($key, $members) + * @method Pipeline3x0 zremrangebyrank($key, $start, $stop) + * @method Pipeline3x0 zremrangebyscore($key, $min, $max) + * @method Pipeline3x0 zrevrange($key, $start, $stop, $withscores = false) + * @method Pipeline3x0 zrevrangebyscore($key, $max, $min, $withscores = false, $limit = null) + * @method Pipeline3x0 zrevrank($key, $member) + * @method Pipeline3x0 zscore($key, $member) + * @method Pipeline3x0 zunionstore($destination, $keys, $weights = null, $aggregate = null) * - * PubSub - * @method Pipeline3x0 publish($channel, $message) - * @method Pipeline3x0 punsubscribe($patterns = null) - * @method Pipeline3x0 unsubscribe($channels) + * Connection + * @method Pipeline3x0 auth($password) + * @method Pipeline3x0 echo($message) + * @method Pipeline3x0 echoMessage($message) - alias method for reversed word + * -method Pipeline3x0 ping() + * @method Pipeline3x0 quit() + * @method Pipeline3x0 select($db) * * Scripting * @method Pipeline3x0 eval($script, $keys = null, $args = null) @@ -118,6 +144,11 @@ * @method Pipeline3x0 sync() * @method Pipeline3x0 time() * + * PubSub + * @method Pipeline3x0 publish($channel, $message) + * @method Pipeline3x0 punsubscribe($patterns = null) + * @method Pipeline3x0 unsubscribe($channels) + * * Sets * @method Pipeline3x0 sadd($key, $members) * @method Pipeline3x0 scard($key) @@ -134,64 +165,27 @@ * @method Pipeline3x0 sunion($keys) * @method Pipeline3x0 sunionstore($destination, $keys) * - * SortedSets - * -method Pipeline3x0 zadd($key, array $members) - * @method Pipeline3x0 zcard($key) - * @method Pipeline3x0 zcount($key, $min, $max) - * @method Pipeline3x0 zincrby($key, $increment, $member) - * @method Pipeline3x0 zinterstore($destination, $keys, $weights = null, $aggregate = null) - * @method Pipeline3x0 zrange($key, $start, $stop, $withscores = false) - * @method Pipeline3x0 zrangebyscore($key, $min, $max, $withscores = false, $limit = null) - * @method Pipeline3x0 zrank($key, $member) - * @method Pipeline3x0 zrem($key, $members) - * @method Pipeline3x0 zremrangebyrank($key, $start, $stop) - * @method Pipeline3x0 zremrangebyscore($key, $min, $max) - * @method Pipeline3x0 zrevrange($key, $start, $stop, $withscores = false) - * @method Pipeline3x0 zrevrangebyscore($key, $max, $min, $withscores = false, $limit = null) - * @method Pipeline3x0 zrevrank($key, $member) - * @method Pipeline3x0 zscore($key, $member) - * @method Pipeline3x0 zunionstore($destination, $keys, $weights = null, $aggregate = null) - * - * Strings - * @method Pipeline3x0 append($key, $value) - * @method Pipeline3x0 bitcount($key, $start = null, $end = null) - * @method Pipeline3x0 bitop($operation, $destkey, $keys) - * @method Pipeline3x0 decr($key) - * @method Pipeline3x0 decrby($key, $decrement) - * @method Pipeline3x0 get($key) - * @method Pipeline3x0 getbit($key, $offset) - * @method Pipeline3x0 getrange($key, $start, $end) - * @method Pipeline3x0 substr($key, $start, $end) - * @method Pipeline3x0 getset($key, $value) - * @method Pipeline3x0 incr($key) - * @method Pipeline3x0 incrby($key, $increment) - * @method Pipeline3x0 incrbyfloat($key, $increment) - * @method Pipeline3x0 mget($keys) - * @method Pipeline3x0 mset(array $keyValues) - * @method Pipeline3x0 msetnx(array $keyValues) - * @method Pipeline3x0 psetex($key, $milliseconds, $value) - * @method Pipeline3x0 set($key, $value, $seconds = null, $milliseconds = null, $exist = null) - * @method Pipeline3x0 setbit($key, $offset, $bit) - * @method Pipeline3x0 setex($key, $seconds, $value) - * @method Pipeline3x0 setnx($key, $value) - * @method Pipeline3x0 setrange($key, $offset, $value) - * @method Pipeline3x0 strlen($key) - * - * Transactions - * @method Pipeline3x0 discard() - * @method Pipeline3x0 exec() - * @method Pipeline3x0 multi() - * @method Pipeline3x0 unwatch() - * @method Pipeline3x0 watch($keys) + * Lists + * @method Pipeline3x0 blpop($keys, $timeout) + * @method Pipeline3x0 brpop($keys, $timeout) + * @method Pipeline3x0 brpoplpush($source, $destination, $timeout) + * @method Pipeline3x0 lindex($key, $index) + * @method Pipeline3x0 linsert($key, $after = true, $pivot, $value) + * @method Pipeline3x0 llen($key) + * @method Pipeline3x0 lpop($key) + * @method Pipeline3x0 lpush($key, $values) + * @method Pipeline3x0 lpushx($key, $value) + * @method Pipeline3x0 lrange($key, $start, $stop) + * @method Pipeline3x0 lrem($key, $count, $value) + * @method Pipeline3x0 lset($key, $index, $value) + * @method Pipeline3x0 ltrim($key, $start, $stop) + * @method Pipeline3x0 rpop($key) + * @method Pipeline3x0 rpoplpush($source, $destination) + * @method Pipeline3x0 rpush($key, $values) + * @method Pipeline3x0 rpushx($key, $value) * * Redis version 2.8 * - * Connection - * @method Pipeline3x0 ping($message = null) - * - * Hashes - * @method Pipeline3x0 hscan($key, $cursor, $pattern = null, $count = null) - * * HyperLogLog * @method Pipeline3x0 pfadd($key, $elements) * @method Pipeline3x0 pfcount($keys) @@ -199,6 +193,12 @@ * @method Pipeline3x0 pfdebug($subcommand, $key) * @method Pipeline3x0 pfselftest() * + * Hashes + * @method Pipeline3x0 hscan($key, $cursor, $pattern = null, $count = null) + * + * Strings + * @method Pipeline3x0 bitpos($key, $bit, $start = null, $end = null) + * * Keys * @method Pipeline3x0 scan($cursor, $pattern = null, $count = null) * @@ -209,8 +209,15 @@ * @method Pipeline3x0 latencyGraph($eventName) * @method Pipeline3x0 latencyDoctor() * - * PubSub - * @method Pipeline3x0 pubsub($subcommand, $arguments = null) + * SortedSets + * @method Pipeline3x0 zlexcount($key, $min, $max) + * @method Pipeline3x0 zrangebylex($key, $min, $max, $limit = null) + * @method Pipeline3x0 zremrangebylex($key, $min, $max) + * @method Pipeline3x0 zrevrangebylex($key, $max, $min, $limit = null) + * @method Pipeline3x0 zscan($key, $cursor, $pattern = null, $count = null) + * + * Connection + * @method Pipeline3x0 ping($message = null) * * Server * @method Pipeline3x0 command() @@ -220,19 +227,12 @@ * @method Pipeline3x0 configRewrite() * @method Pipeline3x0 role() * + * PubSub + * @method Pipeline3x0 pubsub($subcommand, $arguments = null) + * * Sets * @method Pipeline3x0 sscan($key, $cursor, $pattern = null, $count = null) * - * SortedSets - * @method Pipeline3x0 zlexcount($key, $min, $max) - * @method Pipeline3x0 zrangebylex($key, $min, $max, $limit = null) - * @method Pipeline3x0 zremrangebylex($key, $min, $max) - * @method Pipeline3x0 zrevrangebylex($key, $max, $min, $limit = null) - * @method Pipeline3x0 zscan($key, $cursor, $pattern = null, $count = null) - * - * Strings - * @method Pipeline3x0 bitpos($key, $bit, $start = null, $end = null) - * * Redis version 2.9 * * Server @@ -240,6 +240,15 @@ * * Redis version 3.0 * + * Keys + * @method Pipeline3x0 exists($keys) + * @method Pipeline3x0 migrate($host, $port, $key, $destinationDb, $timeout, $copy = false, $replace = false) + * @method Pipeline3x0 restore($key, $ttl, $serializedValue, $replace = false) + * @method Pipeline3x0 wait($numslaves, $timeout) + * + * SortedSets + * @method Pipeline3x0 zadd($key, array $members, $nx = null, $ch = false, $incr = false) + * * Cluster * @method Pipeline3x0 clusterAddslots($slots) * @method Pipeline3x0 clusterCountFailureReports($nodeId) @@ -261,15 +270,6 @@ * @method Pipeline3x0 clusterSlots() * @method Pipeline3x0 readonly() * @method Pipeline3x0 readwrite() - * - * Keys - * @method Pipeline3x0 exists($keys) - * @method Pipeline3x0 migrate($host, $port, $key, $destinationDb, $timeout, $copy = false, $replace = false) - * @method Pipeline3x0 restore($key, $ttl, $serializedValue, $replace = false) - * @method Pipeline3x0 wait($numslaves, $timeout) - * - * SortedSets - * @method Pipeline3x0 zadd($key, array $members, $nx = null, $ch = false, $incr = false) * */ class Pipeline3x0 extends AbstractPipeline { diff --git a/src/RedisClient/Pipeline/Version/Pipeline3x2.php b/src/RedisClient/Pipeline/Version/Pipeline3x2.php index dd09918..2d76a73 100644 --- a/src/RedisClient/Pipeline/Version/Pipeline3x2.php +++ b/src/RedisClient/Pipeline/Version/Pipeline3x2.php @@ -16,13 +16,12 @@ /** * Redis version 2.6 * - * Connection - * @method Pipeline3x2 auth($password) - * @method Pipeline3x2 echo($message) - * @method Pipeline3x2 echoMessage($message) - alias method for reversed word - * -method Pipeline3x2 ping() - * @method Pipeline3x2 quit() - * @method Pipeline3x2 select($db) + * Transactions + * @method Pipeline3x2 discard() + * @method Pipeline3x2 exec() + * @method Pipeline3x2 multi() + * @method Pipeline3x2 unwatch() + * @method Pipeline3x2 watch($keys) * * Hashes * @method Pipeline3x2 hdel($key, $fields) @@ -39,6 +38,31 @@ * @method Pipeline3x2 hsetnx($key, $field, $value) * @method Pipeline3x2 hvals($key) * + * Strings + * @method Pipeline3x2 append($key, $value) + * @method Pipeline3x2 bitcount($key, $start = null, $end = null) + * @method Pipeline3x2 bitop($operation, $destkey, $keys) + * @method Pipeline3x2 decr($key) + * @method Pipeline3x2 decrby($key, $decrement) + * @method Pipeline3x2 get($key) + * @method Pipeline3x2 getbit($key, $offset) + * @method Pipeline3x2 getrange($key, $start, $end) + * @method Pipeline3x2 substr($key, $start, $end) + * @method Pipeline3x2 getset($key, $value) + * @method Pipeline3x2 incr($key) + * @method Pipeline3x2 incrby($key, $increment) + * @method Pipeline3x2 incrbyfloat($key, $increment) + * @method Pipeline3x2 mget($keys) + * @method Pipeline3x2 mset(array $keyValues) + * @method Pipeline3x2 msetnx(array $keyValues) + * @method Pipeline3x2 psetex($key, $milliseconds, $value) + * @method Pipeline3x2 set($key, $value, $seconds = null, $milliseconds = null, $exist = null) + * @method Pipeline3x2 setbit($key, $offset, $bit) + * @method Pipeline3x2 setex($key, $seconds, $value) + * @method Pipeline3x2 setnx($key, $value) + * @method Pipeline3x2 setrange($key, $offset, $value) + * @method Pipeline3x2 strlen($key) + * * Keys * @method Pipeline3x2 del($keys) * @method Pipeline3x2 dump($key) @@ -61,29 +85,31 @@ * @method Pipeline3x2 ttl($key) * @method Pipeline3x2 type($key) * - * Lists - * @method Pipeline3x2 blpop($keys, $timeout) - * @method Pipeline3x2 brpop($keys, $timeout) - * @method Pipeline3x2 brpoplpush($source, $destination, $timeout) - * @method Pipeline3x2 lindex($key, $index) - * @method Pipeline3x2 linsert($key, $after = true, $pivot, $value) - * @method Pipeline3x2 llen($key) - * @method Pipeline3x2 lpop($key) - * @method Pipeline3x2 lpush($key, $values) - * @method Pipeline3x2 lpushx($key, $value) - * @method Pipeline3x2 lrange($key, $start, $stop) - * @method Pipeline3x2 lrem($key, $count, $value) - * @method Pipeline3x2 lset($key, $index, $value) - * @method Pipeline3x2 ltrim($key, $start, $stop) - * @method Pipeline3x2 rpop($key) - * @method Pipeline3x2 rpoplpush($source, $destination) - * @method Pipeline3x2 rpush($key, $values) - * @method Pipeline3x2 rpushx($key, $value) + * SortedSets + * -method Pipeline3x2 zadd($key, array $members) + * @method Pipeline3x2 zcard($key) + * @method Pipeline3x2 zcount($key, $min, $max) + * @method Pipeline3x2 zincrby($key, $increment, $member) + * @method Pipeline3x2 zinterstore($destination, $keys, $weights = null, $aggregate = null) + * @method Pipeline3x2 zrange($key, $start, $stop, $withscores = false) + * @method Pipeline3x2 zrangebyscore($key, $min, $max, $withscores = false, $limit = null) + * @method Pipeline3x2 zrank($key, $member) + * @method Pipeline3x2 zrem($key, $members) + * @method Pipeline3x2 zremrangebyrank($key, $start, $stop) + * @method Pipeline3x2 zremrangebyscore($key, $min, $max) + * @method Pipeline3x2 zrevrange($key, $start, $stop, $withscores = false) + * @method Pipeline3x2 zrevrangebyscore($key, $max, $min, $withscores = false, $limit = null) + * @method Pipeline3x2 zrevrank($key, $member) + * @method Pipeline3x2 zscore($key, $member) + * @method Pipeline3x2 zunionstore($destination, $keys, $weights = null, $aggregate = null) * - * PubSub - * @method Pipeline3x2 publish($channel, $message) - * @method Pipeline3x2 punsubscribe($patterns = null) - * @method Pipeline3x2 unsubscribe($channels) + * Connection + * @method Pipeline3x2 auth($password) + * @method Pipeline3x2 echo($message) + * @method Pipeline3x2 echoMessage($message) - alias method for reversed word + * -method Pipeline3x2 ping() + * @method Pipeline3x2 quit() + * @method Pipeline3x2 select($db) * * Scripting * @method Pipeline3x2 eval($script, $keys = null, $args = null) @@ -118,6 +144,11 @@ * @method Pipeline3x2 sync() * @method Pipeline3x2 time() * + * PubSub + * @method Pipeline3x2 publish($channel, $message) + * @method Pipeline3x2 punsubscribe($patterns = null) + * @method Pipeline3x2 unsubscribe($channels) + * * Sets * @method Pipeline3x2 sadd($key, $members) * @method Pipeline3x2 scard($key) @@ -134,64 +165,27 @@ * @method Pipeline3x2 sunion($keys) * @method Pipeline3x2 sunionstore($destination, $keys) * - * SortedSets - * -method Pipeline3x2 zadd($key, array $members) - * @method Pipeline3x2 zcard($key) - * @method Pipeline3x2 zcount($key, $min, $max) - * @method Pipeline3x2 zincrby($key, $increment, $member) - * @method Pipeline3x2 zinterstore($destination, $keys, $weights = null, $aggregate = null) - * @method Pipeline3x2 zrange($key, $start, $stop, $withscores = false) - * @method Pipeline3x2 zrangebyscore($key, $min, $max, $withscores = false, $limit = null) - * @method Pipeline3x2 zrank($key, $member) - * @method Pipeline3x2 zrem($key, $members) - * @method Pipeline3x2 zremrangebyrank($key, $start, $stop) - * @method Pipeline3x2 zremrangebyscore($key, $min, $max) - * @method Pipeline3x2 zrevrange($key, $start, $stop, $withscores = false) - * @method Pipeline3x2 zrevrangebyscore($key, $max, $min, $withscores = false, $limit = null) - * @method Pipeline3x2 zrevrank($key, $member) - * @method Pipeline3x2 zscore($key, $member) - * @method Pipeline3x2 zunionstore($destination, $keys, $weights = null, $aggregate = null) - * - * Strings - * @method Pipeline3x2 append($key, $value) - * @method Pipeline3x2 bitcount($key, $start = null, $end = null) - * @method Pipeline3x2 bitop($operation, $destkey, $keys) - * @method Pipeline3x2 decr($key) - * @method Pipeline3x2 decrby($key, $decrement) - * @method Pipeline3x2 get($key) - * @method Pipeline3x2 getbit($key, $offset) - * @method Pipeline3x2 getrange($key, $start, $end) - * @method Pipeline3x2 substr($key, $start, $end) - * @method Pipeline3x2 getset($key, $value) - * @method Pipeline3x2 incr($key) - * @method Pipeline3x2 incrby($key, $increment) - * @method Pipeline3x2 incrbyfloat($key, $increment) - * @method Pipeline3x2 mget($keys) - * @method Pipeline3x2 mset(array $keyValues) - * @method Pipeline3x2 msetnx(array $keyValues) - * @method Pipeline3x2 psetex($key, $milliseconds, $value) - * @method Pipeline3x2 set($key, $value, $seconds = null, $milliseconds = null, $exist = null) - * @method Pipeline3x2 setbit($key, $offset, $bit) - * @method Pipeline3x2 setex($key, $seconds, $value) - * @method Pipeline3x2 setnx($key, $value) - * @method Pipeline3x2 setrange($key, $offset, $value) - * @method Pipeline3x2 strlen($key) - * - * Transactions - * @method Pipeline3x2 discard() - * @method Pipeline3x2 exec() - * @method Pipeline3x2 multi() - * @method Pipeline3x2 unwatch() - * @method Pipeline3x2 watch($keys) + * Lists + * @method Pipeline3x2 blpop($keys, $timeout) + * @method Pipeline3x2 brpop($keys, $timeout) + * @method Pipeline3x2 brpoplpush($source, $destination, $timeout) + * @method Pipeline3x2 lindex($key, $index) + * @method Pipeline3x2 linsert($key, $after = true, $pivot, $value) + * @method Pipeline3x2 llen($key) + * @method Pipeline3x2 lpop($key) + * @method Pipeline3x2 lpush($key, $values) + * @method Pipeline3x2 lpushx($key, $value) + * @method Pipeline3x2 lrange($key, $start, $stop) + * @method Pipeline3x2 lrem($key, $count, $value) + * @method Pipeline3x2 lset($key, $index, $value) + * @method Pipeline3x2 ltrim($key, $start, $stop) + * @method Pipeline3x2 rpop($key) + * @method Pipeline3x2 rpoplpush($source, $destination) + * @method Pipeline3x2 rpush($key, $values) + * @method Pipeline3x2 rpushx($key, $value) * * Redis version 2.8 * - * Connection - * @method Pipeline3x2 ping($message = null) - * - * Hashes - * @method Pipeline3x2 hscan($key, $cursor, $pattern = null, $count = null) - * * HyperLogLog * @method Pipeline3x2 pfadd($key, $elements) * @method Pipeline3x2 pfcount($keys) @@ -199,6 +193,12 @@ * @method Pipeline3x2 pfdebug($subcommand, $key) * @method Pipeline3x2 pfselftest() * + * Hashes + * @method Pipeline3x2 hscan($key, $cursor, $pattern = null, $count = null) + * + * Strings + * @method Pipeline3x2 bitpos($key, $bit, $start = null, $end = null) + * * Keys * @method Pipeline3x2 scan($cursor, $pattern = null, $count = null) * @@ -209,8 +209,15 @@ * @method Pipeline3x2 latencyGraph($eventName) * @method Pipeline3x2 latencyDoctor() * - * PubSub - * @method Pipeline3x2 pubsub($subcommand, $arguments = null) + * SortedSets + * @method Pipeline3x2 zlexcount($key, $min, $max) + * @method Pipeline3x2 zrangebylex($key, $min, $max, $limit = null) + * @method Pipeline3x2 zremrangebylex($key, $min, $max) + * @method Pipeline3x2 zrevrangebylex($key, $max, $min, $limit = null) + * @method Pipeline3x2 zscan($key, $cursor, $pattern = null, $count = null) + * + * Connection + * @method Pipeline3x2 ping($message = null) * * Server * @method Pipeline3x2 command() @@ -220,19 +227,12 @@ * @method Pipeline3x2 configRewrite() * @method Pipeline3x2 role() * + * PubSub + * @method Pipeline3x2 pubsub($subcommand, $arguments = null) + * * Sets * @method Pipeline3x2 sscan($key, $cursor, $pattern = null, $count = null) * - * SortedSets - * @method Pipeline3x2 zlexcount($key, $min, $max) - * @method Pipeline3x2 zrangebylex($key, $min, $max, $limit = null) - * @method Pipeline3x2 zremrangebylex($key, $min, $max) - * @method Pipeline3x2 zrevrangebylex($key, $max, $min, $limit = null) - * @method Pipeline3x2 zscan($key, $cursor, $pattern = null, $count = null) - * - * Strings - * @method Pipeline3x2 bitpos($key, $bit, $start = null, $end = null) - * * Redis version 2.9 * * Server @@ -240,6 +240,15 @@ * * Redis version 3.0 * + * Keys + * @method Pipeline3x2 exists($keys) + * -method Pipeline3x2 migrate($host, $port, $key, $destinationDb, $timeout, $copy = false, $replace = false) + * @method Pipeline3x2 restore($key, $ttl, $serializedValue, $replace = false) + * @method Pipeline3x2 wait($numslaves, $timeout) + * + * SortedSets + * @method Pipeline3x2 zadd($key, array $members, $nx = null, $ch = false, $incr = false) + * * Cluster * @method Pipeline3x2 clusterAddslots($slots) * @method Pipeline3x2 clusterCountFailureReports($nodeId) @@ -262,29 +271,14 @@ * @method Pipeline3x2 readonly() * @method Pipeline3x2 readwrite() * - * Keys - * @method Pipeline3x2 exists($keys) - * -method Pipeline3x2 migrate($host, $port, $key, $destinationDb, $timeout, $copy = false, $replace = false) - * @method Pipeline3x2 restore($key, $ttl, $serializedValue, $replace = false) - * @method Pipeline3x2 wait($numslaves, $timeout) - * - * SortedSets - * @method Pipeline3x2 zadd($key, array $members, $nx = null, $ch = false, $incr = false) - * * Redis version 3.2 * - * Geo - * @method Pipeline3x2 geoadd($key, array $members) - * @method Pipeline3x2 geodist($key, $member1, $member2, $unit = null) - * @method Pipeline3x2 geohash($key, $members) - * @method Pipeline3x2 geopos($key, $members) - * @method Pipeline3x2 georadius($key, $longitude, $latitude, $radius, $unit, $withcoord = false, $withdist = false, $withhash = false, $count = null, $asc = null, $storeKey = null, $storeDist = false) - * @method Pipeline3x2 georadiusbymember($key, $member, $radius, $unit, $withcoord = false, $withdist = false, $withhash = false, $count = null, $asc = null, $storeKey = null, $storeDist = false) - * @method Pipeline3x2 geodel($key, $members) - * * Hashes * @method Pipeline3x2 hstrlen($key, $field) * + * Strings + * @method Pipeline3x2 bitfield($key, array $subcommands) + * * Keys * @method Pipeline3x2 migrate($host, $port, $keys, $destinationDb, $timeout, $copy = false, $replace = false) * @method Pipeline3x2 touch($keys) @@ -296,11 +290,17 @@ * @method Pipeline3x2 clientReply($param) * @method Pipeline3x2 debugHelp() * + * Geo + * @method Pipeline3x2 geoadd($key, array $members) + * @method Pipeline3x2 geodist($key, $member1, $member2, $unit = null) + * @method Pipeline3x2 geohash($key, $members) + * @method Pipeline3x2 geopos($key, $members) + * @method Pipeline3x2 georadius($key, $longitude, $latitude, $radius, $unit, $withcoord = false, $withdist = false, $withhash = false, $count = null, $asc = null, $storeKey = null, $storeDist = false) + * @method Pipeline3x2 georadiusbymember($key, $member, $radius, $unit, $withcoord = false, $withdist = false, $withhash = false, $count = null, $asc = null, $storeKey = null, $storeDist = false) + * @method Pipeline3x2 geodel($key, $members) + * * Sets * @method Pipeline3x2 spop($key, $count = null) - * - * Strings - * @method Pipeline3x2 bitfield($key, array $subcommands) * */ class Pipeline3x2 extends AbstractPipeline { diff --git a/src/RedisClient/Pipeline/Version/Pipeline4x0.php b/src/RedisClient/Pipeline/Version/Pipeline4x0.php index 74ff1b2..ea20192 100644 --- a/src/RedisClient/Pipeline/Version/Pipeline4x0.php +++ b/src/RedisClient/Pipeline/Version/Pipeline4x0.php @@ -16,13 +16,12 @@ /** * Redis version 2.6 * - * Connection - * @method Pipeline4x0 auth($password) - * @method Pipeline4x0 echo($message) - * @method Pipeline4x0 echoMessage($message) - alias method for reversed word - * -method Pipeline4x0 ping() - * @method Pipeline4x0 quit() - * @method Pipeline4x0 select($db) + * Transactions + * @method Pipeline4x0 discard() + * @method Pipeline4x0 exec() + * @method Pipeline4x0 multi() + * @method Pipeline4x0 unwatch() + * @method Pipeline4x0 watch($keys) * * Hashes * @method Pipeline4x0 hdel($key, $fields) @@ -39,6 +38,31 @@ * @method Pipeline4x0 hsetnx($key, $field, $value) * @method Pipeline4x0 hvals($key) * + * Strings + * @method Pipeline4x0 append($key, $value) + * @method Pipeline4x0 bitcount($key, $start = null, $end = null) + * @method Pipeline4x0 bitop($operation, $destkey, $keys) + * @method Pipeline4x0 decr($key) + * @method Pipeline4x0 decrby($key, $decrement) + * @method Pipeline4x0 get($key) + * @method Pipeline4x0 getbit($key, $offset) + * @method Pipeline4x0 getrange($key, $start, $end) + * @method Pipeline4x0 substr($key, $start, $end) + * @method Pipeline4x0 getset($key, $value) + * @method Pipeline4x0 incr($key) + * @method Pipeline4x0 incrby($key, $increment) + * @method Pipeline4x0 incrbyfloat($key, $increment) + * @method Pipeline4x0 mget($keys) + * @method Pipeline4x0 mset(array $keyValues) + * @method Pipeline4x0 msetnx(array $keyValues) + * @method Pipeline4x0 psetex($key, $milliseconds, $value) + * @method Pipeline4x0 set($key, $value, $seconds = null, $milliseconds = null, $exist = null) + * @method Pipeline4x0 setbit($key, $offset, $bit) + * @method Pipeline4x0 setex($key, $seconds, $value) + * @method Pipeline4x0 setnx($key, $value) + * @method Pipeline4x0 setrange($key, $offset, $value) + * @method Pipeline4x0 strlen($key) + * * Keys * @method Pipeline4x0 del($keys) * @method Pipeline4x0 dump($key) @@ -61,29 +85,31 @@ * @method Pipeline4x0 ttl($key) * @method Pipeline4x0 type($key) * - * Lists - * @method Pipeline4x0 blpop($keys, $timeout) - * @method Pipeline4x0 brpop($keys, $timeout) - * @method Pipeline4x0 brpoplpush($source, $destination, $timeout) - * @method Pipeline4x0 lindex($key, $index) - * @method Pipeline4x0 linsert($key, $after = true, $pivot, $value) - * @method Pipeline4x0 llen($key) - * @method Pipeline4x0 lpop($key) - * @method Pipeline4x0 lpush($key, $values) - * @method Pipeline4x0 lpushx($key, $value) - * @method Pipeline4x0 lrange($key, $start, $stop) - * @method Pipeline4x0 lrem($key, $count, $value) - * @method Pipeline4x0 lset($key, $index, $value) - * @method Pipeline4x0 ltrim($key, $start, $stop) - * @method Pipeline4x0 rpop($key) - * @method Pipeline4x0 rpoplpush($source, $destination) - * @method Pipeline4x0 rpush($key, $values) - * @method Pipeline4x0 rpushx($key, $value) + * SortedSets + * -method Pipeline4x0 zadd($key, array $members) + * @method Pipeline4x0 zcard($key) + * @method Pipeline4x0 zcount($key, $min, $max) + * @method Pipeline4x0 zincrby($key, $increment, $member) + * @method Pipeline4x0 zinterstore($destination, $keys, $weights = null, $aggregate = null) + * @method Pipeline4x0 zrange($key, $start, $stop, $withscores = false) + * @method Pipeline4x0 zrangebyscore($key, $min, $max, $withscores = false, $limit = null) + * @method Pipeline4x0 zrank($key, $member) + * @method Pipeline4x0 zrem($key, $members) + * @method Pipeline4x0 zremrangebyrank($key, $start, $stop) + * @method Pipeline4x0 zremrangebyscore($key, $min, $max) + * @method Pipeline4x0 zrevrange($key, $start, $stop, $withscores = false) + * @method Pipeline4x0 zrevrangebyscore($key, $max, $min, $withscores = false, $limit = null) + * @method Pipeline4x0 zrevrank($key, $member) + * @method Pipeline4x0 zscore($key, $member) + * @method Pipeline4x0 zunionstore($destination, $keys, $weights = null, $aggregate = null) * - * PubSub - * @method Pipeline4x0 publish($channel, $message) - * @method Pipeline4x0 punsubscribe($patterns = null) - * @method Pipeline4x0 unsubscribe($channels) + * Connection + * @method Pipeline4x0 auth($password) + * @method Pipeline4x0 echo($message) + * @method Pipeline4x0 echoMessage($message) - alias method for reversed word + * -method Pipeline4x0 ping() + * @method Pipeline4x0 quit() + * @method Pipeline4x0 select($db) * * Scripting * @method Pipeline4x0 eval($script, $keys = null, $args = null) @@ -118,6 +144,11 @@ * @method Pipeline4x0 sync() * @method Pipeline4x0 time() * + * PubSub + * @method Pipeline4x0 publish($channel, $message) + * @method Pipeline4x0 punsubscribe($patterns = null) + * @method Pipeline4x0 unsubscribe($channels) + * * Sets * @method Pipeline4x0 sadd($key, $members) * @method Pipeline4x0 scard($key) @@ -134,64 +165,27 @@ * @method Pipeline4x0 sunion($keys) * @method Pipeline4x0 sunionstore($destination, $keys) * - * SortedSets - * -method Pipeline4x0 zadd($key, array $members) - * @method Pipeline4x0 zcard($key) - * @method Pipeline4x0 zcount($key, $min, $max) - * @method Pipeline4x0 zincrby($key, $increment, $member) - * @method Pipeline4x0 zinterstore($destination, $keys, $weights = null, $aggregate = null) - * @method Pipeline4x0 zrange($key, $start, $stop, $withscores = false) - * @method Pipeline4x0 zrangebyscore($key, $min, $max, $withscores = false, $limit = null) - * @method Pipeline4x0 zrank($key, $member) - * @method Pipeline4x0 zrem($key, $members) - * @method Pipeline4x0 zremrangebyrank($key, $start, $stop) - * @method Pipeline4x0 zremrangebyscore($key, $min, $max) - * @method Pipeline4x0 zrevrange($key, $start, $stop, $withscores = false) - * @method Pipeline4x0 zrevrangebyscore($key, $max, $min, $withscores = false, $limit = null) - * @method Pipeline4x0 zrevrank($key, $member) - * @method Pipeline4x0 zscore($key, $member) - * @method Pipeline4x0 zunionstore($destination, $keys, $weights = null, $aggregate = null) - * - * Strings - * @method Pipeline4x0 append($key, $value) - * @method Pipeline4x0 bitcount($key, $start = null, $end = null) - * @method Pipeline4x0 bitop($operation, $destkey, $keys) - * @method Pipeline4x0 decr($key) - * @method Pipeline4x0 decrby($key, $decrement) - * @method Pipeline4x0 get($key) - * @method Pipeline4x0 getbit($key, $offset) - * @method Pipeline4x0 getrange($key, $start, $end) - * @method Pipeline4x0 substr($key, $start, $end) - * @method Pipeline4x0 getset($key, $value) - * @method Pipeline4x0 incr($key) - * @method Pipeline4x0 incrby($key, $increment) - * @method Pipeline4x0 incrbyfloat($key, $increment) - * @method Pipeline4x0 mget($keys) - * @method Pipeline4x0 mset(array $keyValues) - * @method Pipeline4x0 msetnx(array $keyValues) - * @method Pipeline4x0 psetex($key, $milliseconds, $value) - * @method Pipeline4x0 set($key, $value, $seconds = null, $milliseconds = null, $exist = null) - * @method Pipeline4x0 setbit($key, $offset, $bit) - * @method Pipeline4x0 setex($key, $seconds, $value) - * @method Pipeline4x0 setnx($key, $value) - * @method Pipeline4x0 setrange($key, $offset, $value) - * @method Pipeline4x0 strlen($key) - * - * Transactions - * @method Pipeline4x0 discard() - * @method Pipeline4x0 exec() - * @method Pipeline4x0 multi() - * @method Pipeline4x0 unwatch() - * @method Pipeline4x0 watch($keys) + * Lists + * @method Pipeline4x0 blpop($keys, $timeout) + * @method Pipeline4x0 brpop($keys, $timeout) + * @method Pipeline4x0 brpoplpush($source, $destination, $timeout) + * @method Pipeline4x0 lindex($key, $index) + * @method Pipeline4x0 linsert($key, $after = true, $pivot, $value) + * @method Pipeline4x0 llen($key) + * @method Pipeline4x0 lpop($key) + * @method Pipeline4x0 lpush($key, $values) + * @method Pipeline4x0 lpushx($key, $value) + * @method Pipeline4x0 lrange($key, $start, $stop) + * @method Pipeline4x0 lrem($key, $count, $value) + * @method Pipeline4x0 lset($key, $index, $value) + * @method Pipeline4x0 ltrim($key, $start, $stop) + * @method Pipeline4x0 rpop($key) + * @method Pipeline4x0 rpoplpush($source, $destination) + * @method Pipeline4x0 rpush($key, $values) + * @method Pipeline4x0 rpushx($key, $value) * * Redis version 2.8 * - * Connection - * @method Pipeline4x0 ping($message = null) - * - * Hashes - * @method Pipeline4x0 hscan($key, $cursor, $pattern = null, $count = null) - * * HyperLogLog * @method Pipeline4x0 pfadd($key, $elements) * @method Pipeline4x0 pfcount($keys) @@ -199,6 +193,12 @@ * @method Pipeline4x0 pfdebug($subcommand, $key) * @method Pipeline4x0 pfselftest() * + * Hashes + * @method Pipeline4x0 hscan($key, $cursor, $pattern = null, $count = null) + * + * Strings + * @method Pipeline4x0 bitpos($key, $bit, $start = null, $end = null) + * * Keys * @method Pipeline4x0 scan($cursor, $pattern = null, $count = null) * @@ -209,8 +209,15 @@ * @method Pipeline4x0 latencyGraph($eventName) * @method Pipeline4x0 latencyDoctor() * - * PubSub - * @method Pipeline4x0 pubsub($subcommand, $arguments = null) + * SortedSets + * @method Pipeline4x0 zlexcount($key, $min, $max) + * @method Pipeline4x0 zrangebylex($key, $min, $max, $limit = null) + * @method Pipeline4x0 zremrangebylex($key, $min, $max) + * @method Pipeline4x0 zrevrangebylex($key, $max, $min, $limit = null) + * @method Pipeline4x0 zscan($key, $cursor, $pattern = null, $count = null) + * + * Connection + * @method Pipeline4x0 ping($message = null) * * Server * @method Pipeline4x0 command() @@ -220,19 +227,12 @@ * @method Pipeline4x0 configRewrite() * @method Pipeline4x0 role() * + * PubSub + * @method Pipeline4x0 pubsub($subcommand, $arguments = null) + * * Sets * @method Pipeline4x0 sscan($key, $cursor, $pattern = null, $count = null) * - * SortedSets - * @method Pipeline4x0 zlexcount($key, $min, $max) - * @method Pipeline4x0 zrangebylex($key, $min, $max, $limit = null) - * @method Pipeline4x0 zremrangebylex($key, $min, $max) - * @method Pipeline4x0 zrevrangebylex($key, $max, $min, $limit = null) - * @method Pipeline4x0 zscan($key, $cursor, $pattern = null, $count = null) - * - * Strings - * @method Pipeline4x0 bitpos($key, $bit, $start = null, $end = null) - * * Redis version 2.9 * * Server @@ -240,6 +240,15 @@ * * Redis version 3.0 * + * Keys + * @method Pipeline4x0 exists($keys) + * -method Pipeline4x0 migrate($host, $port, $key, $destinationDb, $timeout, $copy = false, $replace = false) + * @method Pipeline4x0 restore($key, $ttl, $serializedValue, $replace = false) + * @method Pipeline4x0 wait($numslaves, $timeout) + * + * SortedSets + * @method Pipeline4x0 zadd($key, array $members, $nx = null, $ch = false, $incr = false) + * * Cluster * @method Pipeline4x0 clusterAddslots($slots) * @method Pipeline4x0 clusterCountFailureReports($nodeId) @@ -262,29 +271,14 @@ * @method Pipeline4x0 readonly() * @method Pipeline4x0 readwrite() * - * Keys - * @method Pipeline4x0 exists($keys) - * -method Pipeline4x0 migrate($host, $port, $key, $destinationDb, $timeout, $copy = false, $replace = false) - * @method Pipeline4x0 restore($key, $ttl, $serializedValue, $replace = false) - * @method Pipeline4x0 wait($numslaves, $timeout) - * - * SortedSets - * @method Pipeline4x0 zadd($key, array $members, $nx = null, $ch = false, $incr = false) - * * Redis version 3.2 * - * Geo - * @method Pipeline4x0 geoadd($key, array $members) - * @method Pipeline4x0 geodist($key, $member1, $member2, $unit = null) - * @method Pipeline4x0 geohash($key, $members) - * @method Pipeline4x0 geopos($key, $members) - * @method Pipeline4x0 georadius($key, $longitude, $latitude, $radius, $unit, $withcoord = false, $withdist = false, $withhash = false, $count = null, $asc = null, $storeKey = null, $storeDist = false) - * @method Pipeline4x0 georadiusbymember($key, $member, $radius, $unit, $withcoord = false, $withdist = false, $withhash = false, $count = null, $asc = null, $storeKey = null, $storeDist = false) - * @method Pipeline4x0 geodel($key, $members) - * * Hashes * @method Pipeline4x0 hstrlen($key, $field) * + * Strings + * @method Pipeline4x0 bitfield($key, array $subcommands) + * * Keys * @method Pipeline4x0 migrate($host, $port, $keys, $destinationDb, $timeout, $copy = false, $replace = false) * @method Pipeline4x0 touch($keys) @@ -296,19 +290,29 @@ * @method Pipeline4x0 clientReply($param) * @method Pipeline4x0 debugHelp() * + * Geo + * @method Pipeline4x0 geoadd($key, array $members) + * @method Pipeline4x0 geodist($key, $member1, $member2, $unit = null) + * @method Pipeline4x0 geohash($key, $members) + * @method Pipeline4x0 geopos($key, $members) + * @method Pipeline4x0 georadius($key, $longitude, $latitude, $radius, $unit, $withcoord = false, $withdist = false, $withhash = false, $count = null, $asc = null, $storeKey = null, $storeDist = false) + * @method Pipeline4x0 georadiusbymember($key, $member, $radius, $unit, $withcoord = false, $withdist = false, $withhash = false, $count = null, $asc = null, $storeKey = null, $storeDist = false) + * @method Pipeline4x0 geodel($key, $members) + * * Sets * @method Pipeline4x0 spop($key, $count = null) * - * Strings - * @method Pipeline4x0 bitfield($key, array $subcommands) - * * Redis version 4.0 * + * Keys + * @method Pipeline4x0 unlink($keys) + * * Connection * @method Pipeline4x0 swapdb($db1, $db2) * - * Keys - * @method Pipeline4x0 unlink($keys) + * Server + * @method Pipeline4x0 flushall($async = false) + * @method Pipeline4x0 flushdb($async = false) * * Memory * @method Pipeline4x0 memoryDoctor() @@ -317,10 +321,6 @@ * @method Pipeline4x0 memoryStats() * @method Pipeline4x0 memoryPurge() * @method Pipeline4x0 memoryMallocStats() - * - * Server - * @method Pipeline4x0 flushall($async = false) - * @method Pipeline4x0 flushdb($async = false) * */ class Pipeline4x0 extends AbstractPipeline { diff --git a/src/RedisClient/Pipeline/Version/Pipeline5x0.php b/src/RedisClient/Pipeline/Version/Pipeline5x0.php index 02092dd..1035205 100644 --- a/src/RedisClient/Pipeline/Version/Pipeline5x0.php +++ b/src/RedisClient/Pipeline/Version/Pipeline5x0.php @@ -16,13 +16,12 @@ /** * Redis version 2.6 * - * Connection - * @method Pipeline5x0 auth($password) - * @method Pipeline5x0 echo($message) - * @method Pipeline5x0 echoMessage($message) - alias method for reversed word - * -method Pipeline5x0 ping() - * @method Pipeline5x0 quit() - * @method Pipeline5x0 select($db) + * Transactions + * @method Pipeline5x0 discard() + * @method Pipeline5x0 exec() + * @method Pipeline5x0 multi() + * @method Pipeline5x0 unwatch() + * @method Pipeline5x0 watch($keys) * * Hashes * @method Pipeline5x0 hdel($key, $fields) @@ -39,6 +38,31 @@ * @method Pipeline5x0 hsetnx($key, $field, $value) * @method Pipeline5x0 hvals($key) * + * Strings + * @method Pipeline5x0 append($key, $value) + * @method Pipeline5x0 bitcount($key, $start = null, $end = null) + * @method Pipeline5x0 bitop($operation, $destkey, $keys) + * @method Pipeline5x0 decr($key) + * @method Pipeline5x0 decrby($key, $decrement) + * @method Pipeline5x0 get($key) + * @method Pipeline5x0 getbit($key, $offset) + * @method Pipeline5x0 getrange($key, $start, $end) + * @method Pipeline5x0 substr($key, $start, $end) + * @method Pipeline5x0 getset($key, $value) + * @method Pipeline5x0 incr($key) + * @method Pipeline5x0 incrby($key, $increment) + * @method Pipeline5x0 incrbyfloat($key, $increment) + * @method Pipeline5x0 mget($keys) + * @method Pipeline5x0 mset(array $keyValues) + * @method Pipeline5x0 msetnx(array $keyValues) + * @method Pipeline5x0 psetex($key, $milliseconds, $value) + * @method Pipeline5x0 set($key, $value, $seconds = null, $milliseconds = null, $exist = null) + * @method Pipeline5x0 setbit($key, $offset, $bit) + * @method Pipeline5x0 setex($key, $seconds, $value) + * @method Pipeline5x0 setnx($key, $value) + * @method Pipeline5x0 setrange($key, $offset, $value) + * @method Pipeline5x0 strlen($key) + * * Keys * @method Pipeline5x0 del($keys) * @method Pipeline5x0 dump($key) @@ -61,29 +85,31 @@ * @method Pipeline5x0 ttl($key) * @method Pipeline5x0 type($key) * - * Lists - * @method Pipeline5x0 blpop($keys, $timeout) - * @method Pipeline5x0 brpop($keys, $timeout) - * @method Pipeline5x0 brpoplpush($source, $destination, $timeout) - * @method Pipeline5x0 lindex($key, $index) - * @method Pipeline5x0 linsert($key, $after = true, $pivot, $value) - * @method Pipeline5x0 llen($key) - * @method Pipeline5x0 lpop($key) - * @method Pipeline5x0 lpush($key, $values) - * @method Pipeline5x0 lpushx($key, $value) - * @method Pipeline5x0 lrange($key, $start, $stop) - * @method Pipeline5x0 lrem($key, $count, $value) - * @method Pipeline5x0 lset($key, $index, $value) - * @method Pipeline5x0 ltrim($key, $start, $stop) - * @method Pipeline5x0 rpop($key) - * @method Pipeline5x0 rpoplpush($source, $destination) - * @method Pipeline5x0 rpush($key, $values) - * @method Pipeline5x0 rpushx($key, $value) + * SortedSets + * -method Pipeline5x0 zadd($key, array $members) + * @method Pipeline5x0 zcard($key) + * @method Pipeline5x0 zcount($key, $min, $max) + * @method Pipeline5x0 zincrby($key, $increment, $member) + * @method Pipeline5x0 zinterstore($destination, $keys, $weights = null, $aggregate = null) + * @method Pipeline5x0 zrange($key, $start, $stop, $withscores = false) + * @method Pipeline5x0 zrangebyscore($key, $min, $max, $withscores = false, $limit = null) + * @method Pipeline5x0 zrank($key, $member) + * @method Pipeline5x0 zrem($key, $members) + * @method Pipeline5x0 zremrangebyrank($key, $start, $stop) + * @method Pipeline5x0 zremrangebyscore($key, $min, $max) + * @method Pipeline5x0 zrevrange($key, $start, $stop, $withscores = false) + * @method Pipeline5x0 zrevrangebyscore($key, $max, $min, $withscores = false, $limit = null) + * @method Pipeline5x0 zrevrank($key, $member) + * @method Pipeline5x0 zscore($key, $member) + * @method Pipeline5x0 zunionstore($destination, $keys, $weights = null, $aggregate = null) * - * PubSub - * @method Pipeline5x0 publish($channel, $message) - * @method Pipeline5x0 punsubscribe($patterns = null) - * @method Pipeline5x0 unsubscribe($channels) + * Connection + * @method Pipeline5x0 auth($password) + * @method Pipeline5x0 echo($message) + * @method Pipeline5x0 echoMessage($message) - alias method for reversed word + * -method Pipeline5x0 ping() + * @method Pipeline5x0 quit() + * @method Pipeline5x0 select($db) * * Scripting * @method Pipeline5x0 eval($script, $keys = null, $args = null) @@ -118,6 +144,11 @@ * @method Pipeline5x0 sync() * @method Pipeline5x0 time() * + * PubSub + * @method Pipeline5x0 publish($channel, $message) + * @method Pipeline5x0 punsubscribe($patterns = null) + * @method Pipeline5x0 unsubscribe($channels) + * * Sets * @method Pipeline5x0 sadd($key, $members) * @method Pipeline5x0 scard($key) @@ -134,64 +165,27 @@ * @method Pipeline5x0 sunion($keys) * @method Pipeline5x0 sunionstore($destination, $keys) * - * SortedSets - * -method Pipeline5x0 zadd($key, array $members) - * @method Pipeline5x0 zcard($key) - * @method Pipeline5x0 zcount($key, $min, $max) - * @method Pipeline5x0 zincrby($key, $increment, $member) - * @method Pipeline5x0 zinterstore($destination, $keys, $weights = null, $aggregate = null) - * @method Pipeline5x0 zrange($key, $start, $stop, $withscores = false) - * @method Pipeline5x0 zrangebyscore($key, $min, $max, $withscores = false, $limit = null) - * @method Pipeline5x0 zrank($key, $member) - * @method Pipeline5x0 zrem($key, $members) - * @method Pipeline5x0 zremrangebyrank($key, $start, $stop) - * @method Pipeline5x0 zremrangebyscore($key, $min, $max) - * @method Pipeline5x0 zrevrange($key, $start, $stop, $withscores = false) - * @method Pipeline5x0 zrevrangebyscore($key, $max, $min, $withscores = false, $limit = null) - * @method Pipeline5x0 zrevrank($key, $member) - * @method Pipeline5x0 zscore($key, $member) - * @method Pipeline5x0 zunionstore($destination, $keys, $weights = null, $aggregate = null) - * - * Strings - * @method Pipeline5x0 append($key, $value) - * @method Pipeline5x0 bitcount($key, $start = null, $end = null) - * @method Pipeline5x0 bitop($operation, $destkey, $keys) - * @method Pipeline5x0 decr($key) - * @method Pipeline5x0 decrby($key, $decrement) - * @method Pipeline5x0 get($key) - * @method Pipeline5x0 getbit($key, $offset) - * @method Pipeline5x0 getrange($key, $start, $end) - * @method Pipeline5x0 substr($key, $start, $end) - * @method Pipeline5x0 getset($key, $value) - * @method Pipeline5x0 incr($key) - * @method Pipeline5x0 incrby($key, $increment) - * @method Pipeline5x0 incrbyfloat($key, $increment) - * @method Pipeline5x0 mget($keys) - * @method Pipeline5x0 mset(array $keyValues) - * @method Pipeline5x0 msetnx(array $keyValues) - * @method Pipeline5x0 psetex($key, $milliseconds, $value) - * @method Pipeline5x0 set($key, $value, $seconds = null, $milliseconds = null, $exist = null) - * @method Pipeline5x0 setbit($key, $offset, $bit) - * @method Pipeline5x0 setex($key, $seconds, $value) - * @method Pipeline5x0 setnx($key, $value) - * @method Pipeline5x0 setrange($key, $offset, $value) - * @method Pipeline5x0 strlen($key) - * - * Transactions - * @method Pipeline5x0 discard() - * @method Pipeline5x0 exec() - * @method Pipeline5x0 multi() - * @method Pipeline5x0 unwatch() - * @method Pipeline5x0 watch($keys) + * Lists + * @method Pipeline5x0 blpop($keys, $timeout) + * @method Pipeline5x0 brpop($keys, $timeout) + * @method Pipeline5x0 brpoplpush($source, $destination, $timeout) + * @method Pipeline5x0 lindex($key, $index) + * @method Pipeline5x0 linsert($key, $after = true, $pivot, $value) + * @method Pipeline5x0 llen($key) + * @method Pipeline5x0 lpop($key) + * @method Pipeline5x0 lpush($key, $values) + * @method Pipeline5x0 lpushx($key, $value) + * @method Pipeline5x0 lrange($key, $start, $stop) + * @method Pipeline5x0 lrem($key, $count, $value) + * @method Pipeline5x0 lset($key, $index, $value) + * @method Pipeline5x0 ltrim($key, $start, $stop) + * @method Pipeline5x0 rpop($key) + * @method Pipeline5x0 rpoplpush($source, $destination) + * @method Pipeline5x0 rpush($key, $values) + * @method Pipeline5x0 rpushx($key, $value) * * Redis version 2.8 * - * Connection - * @method Pipeline5x0 ping($message = null) - * - * Hashes - * @method Pipeline5x0 hscan($key, $cursor, $pattern = null, $count = null) - * * HyperLogLog * @method Pipeline5x0 pfadd($key, $elements) * @method Pipeline5x0 pfcount($keys) @@ -199,6 +193,12 @@ * @method Pipeline5x0 pfdebug($subcommand, $key) * @method Pipeline5x0 pfselftest() * + * Hashes + * @method Pipeline5x0 hscan($key, $cursor, $pattern = null, $count = null) + * + * Strings + * @method Pipeline5x0 bitpos($key, $bit, $start = null, $end = null) + * * Keys * @method Pipeline5x0 scan($cursor, $pattern = null, $count = null) * @@ -209,8 +209,15 @@ * @method Pipeline5x0 latencyGraph($eventName) * @method Pipeline5x0 latencyDoctor() * - * PubSub - * @method Pipeline5x0 pubsub($subcommand, $arguments = null) + * SortedSets + * @method Pipeline5x0 zlexcount($key, $min, $max) + * @method Pipeline5x0 zrangebylex($key, $min, $max, $limit = null) + * @method Pipeline5x0 zremrangebylex($key, $min, $max) + * @method Pipeline5x0 zrevrangebylex($key, $max, $min, $limit = null) + * @method Pipeline5x0 zscan($key, $cursor, $pattern = null, $count = null) + * + * Connection + * @method Pipeline5x0 ping($message = null) * * Server * @method Pipeline5x0 command() @@ -220,19 +227,12 @@ * @method Pipeline5x0 configRewrite() * @method Pipeline5x0 role() * + * PubSub + * @method Pipeline5x0 pubsub($subcommand, $arguments = null) + * * Sets * @method Pipeline5x0 sscan($key, $cursor, $pattern = null, $count = null) * - * SortedSets - * @method Pipeline5x0 zlexcount($key, $min, $max) - * @method Pipeline5x0 zrangebylex($key, $min, $max, $limit = null) - * @method Pipeline5x0 zremrangebylex($key, $min, $max) - * @method Pipeline5x0 zrevrangebylex($key, $max, $min, $limit = null) - * @method Pipeline5x0 zscan($key, $cursor, $pattern = null, $count = null) - * - * Strings - * @method Pipeline5x0 bitpos($key, $bit, $start = null, $end = null) - * * Redis version 2.9 * * Server @@ -240,6 +240,15 @@ * * Redis version 3.0 * + * Keys + * @method Pipeline5x0 exists($keys) + * -method Pipeline5x0 migrate($host, $port, $key, $destinationDb, $timeout, $copy = false, $replace = false) + * @method Pipeline5x0 restore($key, $ttl, $serializedValue, $replace = false) + * @method Pipeline5x0 wait($numslaves, $timeout) + * + * SortedSets + * @method Pipeline5x0 zadd($key, array $members, $nx = null, $ch = false, $incr = false) + * * Cluster * @method Pipeline5x0 clusterAddslots($slots) * @method Pipeline5x0 clusterCountFailureReports($nodeId) @@ -262,29 +271,14 @@ * @method Pipeline5x0 readonly() * @method Pipeline5x0 readwrite() * - * Keys - * @method Pipeline5x0 exists($keys) - * -method Pipeline5x0 migrate($host, $port, $key, $destinationDb, $timeout, $copy = false, $replace = false) - * @method Pipeline5x0 restore($key, $ttl, $serializedValue, $replace = false) - * @method Pipeline5x0 wait($numslaves, $timeout) - * - * SortedSets - * @method Pipeline5x0 zadd($key, array $members, $nx = null, $ch = false, $incr = false) - * * Redis version 3.2 * - * Geo - * @method Pipeline5x0 geoadd($key, array $members) - * @method Pipeline5x0 geodist($key, $member1, $member2, $unit = null) - * @method Pipeline5x0 geohash($key, $members) - * @method Pipeline5x0 geopos($key, $members) - * @method Pipeline5x0 georadius($key, $longitude, $latitude, $radius, $unit, $withcoord = false, $withdist = false, $withhash = false, $count = null, $asc = null, $storeKey = null, $storeDist = false) - * @method Pipeline5x0 georadiusbymember($key, $member, $radius, $unit, $withcoord = false, $withdist = false, $withhash = false, $count = null, $asc = null, $storeKey = null, $storeDist = false) - * @method Pipeline5x0 geodel($key, $members) - * * Hashes * @method Pipeline5x0 hstrlen($key, $field) * + * Strings + * @method Pipeline5x0 bitfield($key, array $subcommands) + * * Keys * @method Pipeline5x0 migrate($host, $port, $keys, $destinationDb, $timeout, $copy = false, $replace = false) * @method Pipeline5x0 touch($keys) @@ -296,19 +290,29 @@ * @method Pipeline5x0 clientReply($param) * @method Pipeline5x0 debugHelp() * + * Geo + * @method Pipeline5x0 geoadd($key, array $members) + * @method Pipeline5x0 geodist($key, $member1, $member2, $unit = null) + * @method Pipeline5x0 geohash($key, $members) + * @method Pipeline5x0 geopos($key, $members) + * @method Pipeline5x0 georadius($key, $longitude, $latitude, $radius, $unit, $withcoord = false, $withdist = false, $withhash = false, $count = null, $asc = null, $storeKey = null, $storeDist = false) + * @method Pipeline5x0 georadiusbymember($key, $member, $radius, $unit, $withcoord = false, $withdist = false, $withhash = false, $count = null, $asc = null, $storeKey = null, $storeDist = false) + * @method Pipeline5x0 geodel($key, $members) + * * Sets * @method Pipeline5x0 spop($key, $count = null) * - * Strings - * @method Pipeline5x0 bitfield($key, array $subcommands) - * * Redis version 4.0 * + * Keys + * @method Pipeline5x0 unlink($keys) + * * Connection * @method Pipeline5x0 swapdb($db1, $db2) * - * Keys - * @method Pipeline5x0 unlink($keys) + * Server + * @method Pipeline5x0 flushall($async = false) + * @method Pipeline5x0 flushdb($async = false) * * Memory * @method Pipeline5x0 memoryDoctor() @@ -318,22 +322,8 @@ * @method Pipeline5x0 memoryPurge() * @method Pipeline5x0 memoryMallocStats() * - * Server - * @method Pipeline5x0 flushall($async = false) - * @method Pipeline5x0 flushdb($async = false) - * * Redis version 5.0 * - * Server - * @method Pipeline5x0 lolwut($param1 = null, $param2 = null, $param3 = null) - * @method Pipeline5x0 replicaof($host, $port) - * - * SortedSets - * @method Pipeline5x0 bzpopmax($keys, $timeout = 0) - * @method Pipeline5x0 bzpopmin($keys, $timeout = 0) - * @method Pipeline5x0 zpopmax($key, $count = null) - * @method Pipeline5x0 zpopmin($key, $count = null) - * * Streams * @method Pipeline5x0 xack($key, $group, $ids) * @method Pipeline5x0 xadd($key, $id, $fieldStrings, $maxlen = null) @@ -353,6 +343,16 @@ * @method Pipeline5x0 xrevrange($key, $end, $start, $count = null) * @method Pipeline5x0 xtrim($key, $count, $withTilde = false) * @method Pipeline5x0 xsetid($stream, $groupname, $id) + * + * SortedSets + * @method Pipeline5x0 bzpopmax($keys, $timeout = 0) + * @method Pipeline5x0 bzpopmin($keys, $timeout = 0) + * @method Pipeline5x0 zpopmax($key, $count = null) + * @method Pipeline5x0 zpopmin($key, $count = null) + * + * Server + * @method Pipeline5x0 lolwut($param1 = null, $param2 = null, $param3 = null) + * @method Pipeline5x0 replicaof($host, $port) * */ class Pipeline5x0 extends AbstractPipeline { diff --git a/tests/Build/CommandsListBuildTest.php b/tests/Build/CommandsListBuildTest.php index b9142d1..751ad81 100644 --- a/tests/Build/CommandsListBuildTest.php +++ b/tests/Build/CommandsListBuildTest.php @@ -10,7 +10,9 @@ */ namespace Test\Build; -class CommandsListBuildTest extends \PHPUnit_Framework_TestCase { +use PHPUnit\Framework\TestCase; + +class CommandsListBuildTest extends TestCase { public function test_generate_commands_list() { chdir(__DIR__.'/../../'); diff --git a/tests/Build/PipelineAnnotationsBuildTest.php b/tests/Build/PipelineAnnotationsBuildTest.php index 5729821..09ff74f 100644 --- a/tests/Build/PipelineAnnotationsBuildTest.php +++ b/tests/Build/PipelineAnnotationsBuildTest.php @@ -10,7 +10,9 @@ */ namespace Test\Build; -class PipelineAnnotationsBuildTest extends \PHPUnit_Framework_TestCase { +use PHPUnit\Framework\TestCase; + +class PipelineAnnotationsBuildTest extends TestCase { /** * Update annotations for pipeline on tests diff --git a/tests/Build/VersionTest.php b/tests/Build/VersionTest.php index 81b6a61..0837fa6 100644 --- a/tests/Build/VersionTest.php +++ b/tests/Build/VersionTest.php @@ -10,9 +10,10 @@ */ namespace Test\Build; +use PHPUnit\Framework\TestCase; use RedisClient\Client\AbstractRedisClient; -class VersionTest extends \PHPUnit_Framework_TestCase { +class VersionTest extends TestCase { public function test_version() { chdir(__DIR__.'/../../'); diff --git a/tests/Integration/BaseVersionTest.php b/tests/Integration/BaseVersionTest.php index 9901ac6..eb7d083 100644 --- a/tests/Integration/BaseVersionTest.php +++ b/tests/Integration/BaseVersionTest.php @@ -10,6 +10,7 @@ */ namespace Test\Integration; +use PHPUnit\Framework\TestCase; use RedisClient\Client\AbstractRedisClient; use RedisClient\Client\Version\RedisClient2x6; use RedisClient\Client\Version\RedisClient2x8; @@ -18,7 +19,7 @@ use RedisClient\Client\Version\RedisClient4x0; use RedisClient\Client\Version\RedisClient5x0; -class BaseVersionTest extends \PHPUnit_Framework_TestCase { +class BaseVersionTest extends TestCase { const SERVER_1 = 0; const SERVER_2 = 1; @@ -79,7 +80,7 @@ protected static function getTestConfig() { if (false === strpos(static::class, '\Version')) { return null; } - list($testClass, $testVersion) = array_reverse(explode('\\', static::class)); + [$testClass, $testVersion] = array_reverse(explode('\\', static::class)); $version = str_ireplace(['version'], [''], $testVersion); $class = str_replace('RedisClient2x6', 'RedisClient' . $version, RedisClient2x6::class); $servers = self::$servers_map[$class]; @@ -113,12 +114,12 @@ protected static function getRedisClient($serverId) { return new $class($config); } - public static function setUpBeforeClass() { + public static function setUpBeforeClass(): void { static::$Redis = self::getRedisClient(self::SERVER_1); static::$Redis2 = self::getRedisClient(self::SERVER_2); } - public static function tearDownAfterClass() { + public static function tearDownAfterClass(): void { if (static::$Redis) { static::$Redis->select(0); static::$Redis->flushall(); @@ -131,7 +132,7 @@ public static function tearDownAfterClass() { } } - protected function setUp() { + protected function setUp(): void { static::tearDownAfterClass(); } diff --git a/tests/Integration/ClusterVersionTest.php b/tests/Integration/ClusterVersionTest.php index bc4f1f2..6e44727 100644 --- a/tests/Integration/ClusterVersionTest.php +++ b/tests/Integration/ClusterVersionTest.php @@ -10,13 +10,14 @@ */ namespace Test\Integration; +use PHPUnit\Framework\TestCase; use RedisClient\Client\AbstractRedisClient; use RedisClient\Client\Version\RedisClient3x0; use RedisClient\Client\Version\RedisClient3x2; use RedisClient\Client\Version\RedisClient4x0; use RedisClient\Client\Version\RedisClient5x0; -class ClusterVersionTest extends \PHPUnit_Framework_TestCase { +class ClusterVersionTest extends TestCase { static protected $servers_map = [ RedisClient3x0::class => [ @@ -52,7 +53,7 @@ protected static function getRedisClientClass() { if (false === strpos(static::class, '\Version')) { return null; } - list($testClass, $testVersion) = array_reverse(explode('\\', static::class)); + [$testClass, $testVersion] = array_reverse(explode('\\', static::class)); $version = str_ireplace(['version'], [''], $testVersion); $class = str_replace('RedisClient3x0', 'RedisClient' . $version, RedisClient3x0::class); return $class; diff --git a/tests/Integration/DefaultDatabaseTest.php b/tests/Integration/DefaultDatabaseTest.php index c7b3f96..bd90058 100644 --- a/tests/Integration/DefaultDatabaseTest.php +++ b/tests/Integration/DefaultDatabaseTest.php @@ -10,12 +10,13 @@ */ namespace Test\Integration; +use PHPUnit\Framework\TestCase; use RedisClient\Client\Version\RedisClient2x6; /** * Check Redis Versions */ -class DefaultDatabaseTest extends \PHPUnit_Framework_TestCase { +class DefaultDatabaseTest extends TestCase { public function test_defaultDatabase() { $Redis = new RedisClient2x6([ diff --git a/tests/Integration/RedisVersionTest.php b/tests/Integration/RedisVersionTest.php index de9b113..b7b220f 100644 --- a/tests/Integration/RedisVersionTest.php +++ b/tests/Integration/RedisVersionTest.php @@ -10,12 +10,13 @@ */ namespace Test\Integration; +use PHPUnit\Framework\TestCase; use RedisClient\ClientFactory; /** * Check Redis Versions */ -class RedisVersionTest extends \PHPUnit_Framework_TestCase { +class RedisVersionTest extends TestCase { // , , protected $versions = [ @@ -38,7 +39,7 @@ class RedisVersionTest extends \PHPUnit_Framework_TestCase { */ public function test_RedisVersions() { foreach ($this->versions as $n => $arr) { - list($server, $clientVersion, $serverVersion) = $arr; + [$server, $clientVersion, $serverVersion] = $arr; $Redis = ClientFactory::create([ 'server' => $server, diff --git a/tests/Integration/Version2x6/HashesCommandsTest.php b/tests/Integration/Version2x6/HashesCommandsTest.php index bc1f995..b3d308f 100644 --- a/tests/Integration/Version2x6/HashesCommandsTest.php +++ b/tests/Integration/Version2x6/HashesCommandsTest.php @@ -27,7 +27,7 @@ class HashesCommandsTest extends \Test\Integration\BaseVersionTest { /** * @inheritdoc */ - protected function setUp() { + protected function setUp(): void { static::$Redis->flushall(); static::$fields = [ 'string' => 'value', diff --git a/tests/Integration/Version2x6/StringsCommandsTest.php b/tests/Integration/Version2x6/StringsCommandsTest.php index cd4036c..ba50169 100644 --- a/tests/Integration/Version2x6/StringsCommandsTest.php +++ b/tests/Integration/Version2x6/StringsCommandsTest.php @@ -27,7 +27,7 @@ class StringsCommandsTest extends \Test\Integration\BaseVersionTest { /** * @inheritdoc */ - protected function setUp() { + protected function setUp(): void { parent::setUp(); static::$fields = [ 'string' => 'value', diff --git a/tests/Integration/Version3x2/HashesCommandsTest.php b/tests/Integration/Version3x2/HashesCommandsTest.php index fe6aeea..5e4f218 100644 --- a/tests/Integration/Version3x2/HashesCommandsTest.php +++ b/tests/Integration/Version3x2/HashesCommandsTest.php @@ -60,7 +60,7 @@ public function test_hincrby() { $this->assertSame(48, $Redis->hincrby('hash', 'integer', 6)); $this->assertSame(0, $Redis->hincrby('hash', 'integer', -48)); - $this->setExpectedException(ErrorResponseException::class); + $this->expectException(ErrorResponseException::class); $Redis->hincrby('', 'null', 2); try { diff --git a/tests/Integration/Version4x0/GeoCommandsTest.php b/tests/Integration/Version4x0/GeoCommandsTest.php index 5699349..e9e82ac 100644 --- a/tests/Integration/Version4x0/GeoCommandsTest.php +++ b/tests/Integration/Version4x0/GeoCommandsTest.php @@ -42,7 +42,7 @@ public function test_geohash() { $this->assertSame(null, $Redis->geodist('Sicily', 'bar', 'foo')); $Redis->set('foo', 'bar'); - $this->setExpectedException(ErrorResponseException::class); + $this->expectException(ErrorResponseException::class); $Redis->geodist('foo', 'bar', 'foo'); } diff --git a/tests/Integration/Version4x0/StringsCommandsTest.php b/tests/Integration/Version4x0/StringsCommandsTest.php index 83fe735..5cae13b 100644 --- a/tests/Integration/Version4x0/StringsCommandsTest.php +++ b/tests/Integration/Version4x0/StringsCommandsTest.php @@ -31,13 +31,13 @@ public function test_incrbyfloat() { $this->assertSame('4.15159265', $Redis->incrbyfloat('float', 1.01)); $this->assertSame('3.14159265', $Redis->incrbyfloat('float', -1.01)); - $this->setExpectedException(ErrorResponseException::class); + $this->expectException(ErrorResponseException::class); $this->assertSame('17.5', $Redis->incrbyfloat('bin', 17.5)); - $this->setExpectedException(ErrorResponseException::class); + $this->expectException(ErrorResponseException::class); $this->assertSame(8, $Redis->incrbyfloat('string', 8)); - $this->setExpectedException(ErrorResponseException::class); + $this->expectException(ErrorResponseException::class); $Redis->incrbyfloat('hash', 2.2); } } diff --git a/tests/Unit/Client/AbstractRedisClientIsolatedTest.php b/tests/Unit/Client/AbstractRedisClientIsolatedTest.php index 80897f2..db1a25a 100644 --- a/tests/Unit/Client/AbstractRedisClientIsolatedTest.php +++ b/tests/Unit/Client/AbstractRedisClientIsolatedTest.php @@ -11,6 +11,7 @@ namespace Test\Unit\Client; use ExtraMocks\Mocks; +use PHPUnit\Framework\TestCase; use RedisClient\Client\AbstractRedisClient; use RedisClient\Exception\MovedResponseException; use RedisClient\RedisClient; @@ -20,9 +21,9 @@ * @runTestsInSeparateProcesses * @runInSeparateProcess */ -class AbstractRedisClientIsolatedTest extends \PHPUnit_Framework_TestCase { +class AbstractRedisClientIsolatedTest extends TestCase { - public function setUp() { + public function setUp(): void { $this->mockStream(); } diff --git a/tests/Unit/Client/AbstractRedisClientTest.php b/tests/Unit/Client/AbstractRedisClientTest.php index de94c06..9c27893 100644 --- a/tests/Unit/Client/AbstractRedisClientTest.php +++ b/tests/Unit/Client/AbstractRedisClientTest.php @@ -10,16 +10,16 @@ */ namespace Test\Unit\Client; +use PHPUnit\Framework\TestCase; use RedisClient\Client\AbstractRedisClient; -use RedisClient\RedisClient; /** * @see AbstractRedisClient */ -class AbstractRedisClientTest extends \PHPUnit_Framework_TestCase { +class AbstractRedisClientTest extends TestCase { /** - * @return \PHPUnit_Framework_MockObject_MockObject|AbstractRedisClient + * @return \PHPUnit\Framework\MockObject\MockObject|AbstractRedisClient */ protected function getAbstractRedisClientMock() { $Mock = $this->getMockForAbstractClass(AbstractRedisClient::class); @@ -33,7 +33,7 @@ public function provider_parseRawString() { [['SET', 'foo', 'hello world'], 'SET foo "hello world"'], [['SET', '', 'hello world'], 'SET "" "hello world"'], [['SET', 'some key', 'hello world'], 'SET "some key" "hello world"'], - + [ ['SET', 'some "key"', 'hello my "little" world'], 'SET "some \"key\"" "hello my \"little\" world"' diff --git a/tests/Unit/ClientFactoryTest.php b/tests/Unit/ClientFactoryTest.php index 9e597c9..1e9f6b6 100644 --- a/tests/Unit/ClientFactoryTest.php +++ b/tests/Unit/ClientFactoryTest.php @@ -10,6 +10,7 @@ */ namespace Test\Unit; +use PHPUnit\Framework\TestCase; use RedisClient\Client\Version\RedisClient2x6; use RedisClient\Client\Version\RedisClient2x8; use RedisClient\Client\Version\RedisClient3x0; @@ -19,7 +20,7 @@ /** * @see ClientFactory */ -class ClientFactoryTest extends \PHPUnit_Framework_TestCase { +class ClientFactoryTest extends TestCase { /** * @see RedisProtocol::createClientByVersion diff --git a/tests/Unit/Cluster/ClusterMapTest.php b/tests/Unit/Cluster/ClusterMapTest.php index ca1fbdf..319f163 100644 --- a/tests/Unit/Cluster/ClusterMapTest.php +++ b/tests/Unit/Cluster/ClusterMapTest.php @@ -10,17 +10,18 @@ */ namespace Test\Unit\Cluster; +use PHPUnit\Framework\TestCase; use RedisClient\Cluster\ClusterMap; use RedisClient\RedisClient; /** - * @see RedisClient\Cluster\ClusterMap + * @see \RedisClient\Cluster\ClusterMap */ -class ClusterMapTest extends \PHPUnit_Framework_TestCase { +class ClusterMapTest extends TestCase { protected function getClusterMap($RedisClient = null, $config = []) { if (!$RedisClient) { - /** @var RedisClient|\PHPUnit_Framework_MockObject_MockObject $RedisClient */ + /** @var RedisClient|\PHPUnit\Framework\MockObject\MockObject $RedisClient */ $RedisClient = $this->getMockBuilder(RedisClient::class) ->disableOriginalConstructor() ->getMock(); @@ -94,7 +95,7 @@ public function provider_getSlotByKey() { } /** - * @see RedisClient\Cluster\ClusterMap::getSlotByKey + * @see \RedisClient\Cluster\ClusterMap::getSlotByKey * @dataProvider provider_getSlotByKey * @param string $key * @param int $slot @@ -137,7 +138,7 @@ public function provider_getServerBySlot() { } /** - * @see RedisClient\Cluster\ClusterMap::getServerBySlot + * @see \RedisClient\Cluster\ClusterMap::getServerBySlot * @dataProvider provider_getServerBySlot * @param int $slot * @param string $expect @@ -155,7 +156,7 @@ public function test_getServerBySlot($slot, $expect) { } /** - * @see RedisClient\Cluster\ClusterMap::setClusters + * @see \RedisClient\Cluster\ClusterMap::setClusters */ public function test_setClusters() { $ClusterMap = $this->getClusterMap(); @@ -198,7 +199,7 @@ public function test_setClusters() { } /** - * @see RedisClient\Cluster\ClusterMap::addCluster + * @see \RedisClient\Cluster\ClusterMap::addCluster */ public function test_addCluster() { $ClusterMap = $this->getClusterMap(); diff --git a/tests/Unit/Command/Response/ResponseParserTest.php b/tests/Unit/Command/Response/ResponseParserTest.php index ead1089..11b4e24 100644 --- a/tests/Unit/Command/Response/ResponseParserTest.php +++ b/tests/Unit/Command/Response/ResponseParserTest.php @@ -10,16 +10,17 @@ */ namespace Test\Unit\Command\Response; +use PHPUnit\Framework\TestCase; use RedisClient\Client\AbstractRedisClient; use RedisClient\Command\Response\ResponseParser; /** * @see ResponseParser */ -class ResponseParserTest extends \PHPUnit_Framework_TestCase { +class ResponseParserTest extends TestCase { /** - * @return \PHPUnit_Framework_MockObject_MockObject|AbstractRedisClient + * @return \PHPUnit\Framework\MockObject\MockObject|AbstractRedisClient */ protected function getAbstractRedisClientMock() { $Mock = $this->getMockForAbstractClass(AbstractRedisClient::class); diff --git a/tests/Unit/Protocol/RedisProtocolTest.php b/tests/Unit/Protocol/RedisProtocolTest.php index 55991e0..9c7e3b4 100644 --- a/tests/Unit/Protocol/RedisProtocolTest.php +++ b/tests/Unit/Protocol/RedisProtocolTest.php @@ -10,14 +10,15 @@ */ namespace Test\Unit\Protocol; +use PHPUnit\Framework\TestCase; use RedisClient\Connection\StreamConnection; use RedisClient\Exception\ErrorResponseException; use RedisClient\Protocol\RedisProtocol; -class RedisProtocolTest extends \PHPUnit_Framework_TestCase { +class RedisProtocolTest extends TestCase { /** - * @return \PHPUnit_Framework_MockObject_MockObject|StreamConnection + * @return \PHPUnit\Framework\MockObject\MockObject|StreamConnection */ protected function getConnectionMock() { $ConnectionMock = $this->getMockBuilder(StreamConnection::class)