Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Favre-Felix <n.favrefelix@gmail.com>2010-03-17 16:30:00 +0300
committerNicolas Favre-Felix <n.favrefelix@gmail.com>2010-03-17 16:30:00 +0300
commit49daf37f1eb08b49602f017da41f4e8029ce8950 (patch)
treebf42d32b28638f0bbda3cde94439ec4b88297034 /README.markdown
parentc59c0149ef1f8107152416e58f06874cc8f15a0e (diff)
HINCRBY. Waiting for antirez to implement it :)
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown16
1 files changed, 16 insertions, 0 deletions
diff --git a/README.markdown b/README.markdown
index 2957c9de..5f41f961 100644
--- a/README.markdown
+++ b/README.markdown
@@ -1476,3 +1476,19 @@ $this->hSet('h', 'a', 'x');
$this->hExists('h', 'a'); /* TRUE */
$this->hExists('h', 'NonExistingKey'); /* FALSE */
</pre>
+
+## hIncrBy
+##### Description
+Increments the value of a member from a hash by a given amount.
+##### Parameters
+*key*
+*value*: (double) value that will be added to the member's value
+*member*
+##### Return value
+*DOUBLE* the new value
+##### Examples
+<pre>
+$redis->delete('h');
+$redis->hIncrBy('h', 2.5, 'x'); /* returns 2.5: h[x] = 2.5 now. */
+$redis->zIncrBy('h', 1, 'x'); /* h[x] ← 2.5 + 1. Returns 3.5 */
+</pre>