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:
authorftwbzhao <b.zhao1@gmail.com>2015-05-13 11:38:32 +0300
committerMichael Grunder <michael.grunder@gmail.com>2018-02-09 04:06:34 +0300
commit1886140338acd3db1ccd4dff987226b2cd84b07b (patch)
tree7fab2bb3684ed38d4f395f08ef21e377f652a7d6 /README.markdown
parent3cec66a2c0c177d52f7090fa7374079396889618 (diff)
update INCR && DECR
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown12
1 files changed, 10 insertions, 2 deletions
diff --git a/README.markdown b/README.markdown
index 34ddf882..387ca7e5 100644
--- a/README.markdown
+++ b/README.markdown
@@ -832,7 +832,11 @@ $redis->incr('key1'); /* key1 didn't exists, set to 0 before the increment */
$redis->incr('key1'); /* 2 */
$redis->incr('key1'); /* 3 */
$redis->incr('key1'); /* 4 */
-$redis->incrBy('key1', 10); /* 14 */
+
+// Will redirect, and actually make an INCRBY call
+$redis->incr('key1', 10); /* 14 */
+
+$redis->incrBy('key1', 10); /* 24 */
~~~
### incrByFloat
@@ -874,7 +878,11 @@ $redis->decr('key1'); /* key1 didn't exists, set to 0 before the increment */
$redis->decr('key1'); /* -2 */
$redis->decr('key1'); /* -3 */
-$redis->decrBy('key1', 10); /* -13 */
+
+// Will redirect, and actually make an DECRBY call
+$redis->decr('key1', 10); /* -13 */
+
+$redis->decrBy('key1', 10); /* -23 */
~~~
### mGet, getMultiple