From 62c547601c37764162e45486ddf2eb48009b5c80 Mon Sep 17 00:00:00 2001 From: Ante Braovic Date: Thu, 12 May 2016 16:27:17 +0200 Subject: [PATCH] added zrevrangebylex in the list of available methods --- .gitignore | 1 + src/ClientContextInterface.php | 1 + src/ClientInterface.php | 1 + src/Command/ZSetReverseRangeByLex.php | 5 +++++ 4 files changed, 8 insertions(+) diff --git a/.gitignore b/.gitignore index 3f94fe22..ed25a37b 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ package.xml composer.lock experiments/ vendor/ +.idea/ \ No newline at end of file diff --git a/src/ClientContextInterface.php b/src/ClientContextInterface.php index 7f695b78..9c69f5cb 100644 --- a/src/ClientContextInterface.php +++ b/src/ClientContextInterface.php @@ -121,6 +121,7 @@ use Predis\Command\CommandInterface; * @method $this zscore($key, $member) * @method $this zscan($key, $cursor, array $options = null) * @method $this zrangebylex($key, $start, $stop, array $options = null) + * @method $this zrevrangebylex($key, $start, $stop, array $options = null) * @method $this zremrangebylex($key, $min, $max) * @method $this zlexcount($key, $min, $max) * @method $this pfadd($key, array $elements) diff --git a/src/ClientInterface.php b/src/ClientInterface.php index d23bc1c3..8126ffec 100644 --- a/src/ClientInterface.php +++ b/src/ClientInterface.php @@ -129,6 +129,7 @@ use Predis\Profile\ProfileInterface; * @method string zscore($key, $member) * @method array zscan($key, $cursor, array $options = null) * @method array zrangebylex($key, $start, $stop, array $options = null) + * @method array zrevrangebylex($key, $start, $stop, array $options = null) * @method int zremrangebylex($key, $min, $max) * @method int zlexcount($key, $min, $max) * @method int pfadd($key, array $elements) diff --git a/src/Command/ZSetReverseRangeByLex.php b/src/Command/ZSetReverseRangeByLex.php index cdd8ba62..5dd611d9 100644 --- a/src/Command/ZSetReverseRangeByLex.php +++ b/src/Command/ZSetReverseRangeByLex.php @@ -11,6 +11,11 @@ namespace Predis\Command; +/** + * @link http://redis.io/commands/zrevrangebylex + * + * @author Daniele Alessandri + */ class ZSetReverseRangeByLex extends ZSetRangeByLex { /**