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-05-17 18:21:37 +0400
committerNicolas Favre-Felix <n.favrefelix@gmail.com>2010-05-17 18:21:37 +0400
commit14ab0858a989a717c51715e1bbc4dfb33e4e5dba (patch)
tree4e7790890a0c62fbe48121728f33bc5b4aa819c1 /README.markdown
parent9fabfa68f30f60b1490914396b60b9e0362335f8 (diff)
Fixed HINCRBY.
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown8
1 files changed, 4 insertions, 4 deletions
diff --git a/README.markdown b/README.markdown
index 92991806..e35cfb79 100644
--- a/README.markdown
+++ b/README.markdown
@@ -1571,13 +1571,13 @@ $this->hExists('h', 'NonExistingKey'); /* FALSE */
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*
+*value*: (integer) value that will be added to the member's value
##### Return value
-*DOUBLE* the new value
+*LONG* 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 */
+$redis->hIncrBy('h', 'x', 2); /* returns 2: h[x] = 2 now. */
+$redis->zIncrBy('h', 'x', 1); /* h[x] ← 2 + 1. Returns 3 */
</pre>