From a029cc3c57cf7bff855d00b9ef4d908a456af897 Mon Sep 17 00:00:00 2001 From: Alexander Demidov Date: Fri, 21 Jun 2013 13:26:31 +0400 Subject: [PATCH 1/3] sAdd, sCard, sSize, sMembers, sGetMembers, sContains, sIsMember, sRem, sRemove --- redis/redis.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/redis/redis.php b/redis/redis.php index 94a8842..2182ee0 100644 --- a/redis/redis.php +++ b/redis/redis.php @@ -49,6 +49,15 @@ * @method float zScore() zScore(string $key, string $value) Returns the score of a given member in the specified sorted set. * @method float zUnionStore() zUnionStore(string $destination, array $keys, array $weights = array(), string $aggregate = 'sum') Creates an union of sorted sets given in second argument and store in in first argument * @method float zInterStore() zInterStore(string $destination, array $keys, array $weights = array(), string $aggregate = 'sum') Creates an intersection of sorted sets given in second argument and store in in first argument + * @method int sAdd() sAdd(string $key, string $value) Adds a value to the set value stored at key. If this value is already in the set, FALSE is returned. + * @method int sCard() sCard(string $key) Returns the cardinality of the set identified by key. + * @method int sSize() sSize(string $key) Returns the cardinality of the set identified by key. + * @method array sMembers() sMembers(string $key) Returns the contents of a set. + * @method array sGetMembers() sGetMembers(string $key) Returns the contents of a set. + * @method bool sContains() sContains(string $key, string $value) Checks if value is a member of the set stored at the key key. + * @method bool sIsMember() sIsMember(string $key, string $value) Checks if value is a member of the set stored at the key key. + * @method bool sRem() sRem(string $key, string $member) Removes the specified member from the set value stored at key. + * @method bool sRemove() sRemove(string $key, string $member) Removes the specified member from the set value stored at key. */ class Redis { From 3e30e59e0b0b55db2bfafc6ae86f067fea3af361 Mon Sep 17 00:00:00 2001 From: Alexander Demidov Date: Tue, 10 Sep 2013 17:02:32 +0400 Subject: [PATCH 2/3] lRange, rPush, lTrim --- redis/redis.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/redis/redis.php b/redis/redis.php index 2182ee0..a9877f0 100644 --- a/redis/redis.php +++ b/redis/redis.php @@ -58,6 +58,9 @@ * @method bool sIsMember() sIsMember(string $key, string $value) Checks if value is a member of the set stored at the key key. * @method bool sRem() sRem(string $key, string $member) Removes the specified member from the set value stored at key. * @method bool sRemove() sRemove(string $key, string $member) Removes the specified member from the set value stored at key. + * @method array lRange() lRange(string $key, int $start, int $end) Returns the specified elements of the list stored at the specified key in the range [start, end]. start and stop are interpretated as indices: 0 the first element, 1 the second ... -1 the last element, -2 the penultimate + * @method int rPush() rPush(string $key, string $value) Adds the string value to the tail (right) of the list. Creates the list if the key didn't exist. If the key exists and is not a list, FALSE is returned. + * @method array lTrim() lTrim(string $key, int $start, int $stop) Trims an existing list so that it will contain only a specified range of elements. */ class Redis { From 7fd2961737f0b23a3cdc1d7484a07efb3aa3f9df Mon Sep 17 00:00:00 2001 From: Alexander Demidov Date: Thu, 15 Aug 2013 17:21:47 +0400 Subject: [PATCH 3/3] sInter --- redis/redis.php | 1 + 1 file changed, 1 insertion(+) diff --git a/redis/redis.php b/redis/redis.php index a9877f0..3514a5f 100644 --- a/redis/redis.php +++ b/redis/redis.php @@ -61,6 +61,7 @@ * @method array lRange() lRange(string $key, int $start, int $end) Returns the specified elements of the list stored at the specified key in the range [start, end]. start and stop are interpretated as indices: 0 the first element, 1 the second ... -1 the last element, -2 the penultimate * @method int rPush() rPush(string $key, string $value) Adds the string value to the tail (right) of the list. Creates the list if the key didn't exist. If the key exists and is not a list, FALSE is returned. * @method array lTrim() lTrim(string $key, int $start, int $stop) Trims an existing list so that it will contain only a specified range of elements. + * @method array sInter */ class Redis {