diff options
author | Nicolas Favre-Felix <n.favrefelix@gmail.com> | 2010-07-26 19:50:29 +0400 |
---|---|---|
committer | Nicolas Favre-Felix <n.favrefelix@gmail.com> | 2010-07-26 19:50:29 +0400 |
commit | e5bdf71cb112b0d08d4465f2f377a1521965131e (patch) | |
tree | cb248433cf44762f0c3b98ad90d148e49fb320dd /README.markdown | |
parent | 8b7de818d101ca1f64affda549a3293bd100c382 (diff) |
PUBLISH/SUBSCRIBE crashes.
Diffstat (limited to 'README.markdown')
-rw-r--r-- | README.markdown | 4 |
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 |