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-07-26 19:50:29 +0400
committerNicolas Favre-Felix <n.favrefelix@gmail.com>2010-07-26 19:50:29 +0400
commite5bdf71cb112b0d08d4465f2f377a1521965131e (patch)
treecb248433cf44762f0c3b98ad90d148e49fb320dd /README.markdown
parent8b7de818d101ca1f64affda549a3293bd100c382 (diff)
PUBLISH/SUBSCRIBE crashes.
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.markdown b/README.markdown
index c28cbff7..08c74ef3 100644
--- a/README.markdown
+++ b/README.markdown
@@ -142,11 +142,11 @@ $redis->delete('key1', 'key2'); /* return 2 */
$redis->delete(array('key3', 'key4')); /* return 2 */
</pre>
-## multi, exec.
+## multi, exec, discard.
##### Description
Enter and exit transactional mode.
##### Parameters
-(optional) `Redis::MULTI` or `Redis::PIPELINE`. Defaults to `Redis::MULTI`. A `Redis::MULTI` block of commands runs as a single transaction; a `Redis::PIPELINE` block is simply transmitted faster to the server, but without any guarantee of atomicity.
+(optional) `Redis::MULTI` or `Redis::PIPELINE`. Defaults to `Redis::MULTI`. A `Redis::MULTI` block of commands runs as a single transaction; a `Redis::PIPELINE` block is simply transmitted faster to the server, but without any guarantee of atomicity. `discard` cancels a transaction.
##### Return value
`multi()` returns the Redis instance and enters multi-mode. Once in multi-mode, all subsequent method calls return the same object until `exec()` is called.
##### Example