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:
authorAndrew Morton <andrew.morton@nbcuni.com>2010-03-01 19:59:18 +0300
committerAndrew Morton <andrew.morton@nbcuni.com>2010-03-01 19:59:18 +0300
commit264e3c322e8b48f2b4dbf6be18152b3a0b999146 (patch)
treeef913da70ce1cdabf125d8ae80d6c65ef0403e8e /README.markdown
parent5699724995cdd5350709cab8c9f595088d2cfee0 (diff)
Removing duplicate docs for rPop. Small clean ups on the return sections of lPop() and rPop().
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown25
1 files changed, 5 insertions, 20 deletions
diff --git a/README.markdown b/README.markdown
index c04ed53f..086d6eac 100644
--- a/README.markdown
+++ b/README.markdown
@@ -218,29 +218,14 @@ $redis->rPush('key1', 'B');
$redis->rPush('key1', 'C'); /* key1 => [ 'A', 'B', 'C' ] */
</pre>
-## rpop
-##### Description
-Returns and removes the last element of the list.
-##### Parameters
-*key*
-##### Return value
-*STRING* if command executed successfully, *BOOL* `FALSE` in case of failure (key didn't exist)
-##### Examples
-<pre>
-$redis->rPush('key1', 'A');
-$redis->rPush('key1', 'B');
-$redis->rPush('key1', 'C'); /* key1 => [ 'A', 'B', 'C' ] */
-$redis->rPop('key1'); /* key1 => [ 'A', 'B' ] */
-</pre>
-
## lPop
##### *Description*
Return and remove the first element of the list.
##### *Parameters*
*key*
##### *Return value*
-*STRING* in case of success (key exists)
-*STRING* if command executed successfully, *BOOL* `FALSE` in case of failure (key didn't exist)
+*STRING* if command executed successfully
+*BOOL* `FALSE` in case of failure (empty list)
##### *Example*
<pre>
$redis->rPush('key1', 'A');
@@ -249,14 +234,14 @@ $redis->rPush('key1', 'C'); /* key1 => [ 'C', 'B', 'A' ] */
$redis->lPop('key1'); /* key1 => [ 'B', 'A' ] */
</pre>
-## rpop
+## rPop
##### *Description*
Returns and removes the first element of the list.
##### *Parameters*
*key*
##### *Return value*
-*STRING* in case of success (key exists)
-*BOOL* `FALSE` in case of failure (key didn't exist)
+*STRING* if command executed successfully
+*BOOL* `FALSE` in case of failure (empty list)
##### *Example*
<pre>
$redis->rPush('key1', 'A');