diff options
author | Andrew Morton <andrew.morton@nbcuni.com> | 2010-03-01 19:59:18 +0300 |
---|---|---|
committer | Andrew Morton <andrew.morton@nbcuni.com> | 2010-03-01 19:59:18 +0300 |
commit | 264e3c322e8b48f2b4dbf6be18152b3a0b999146 (patch) | |
tree | ef913da70ce1cdabf125d8ae80d6c65ef0403e8e /README.markdown | |
parent | 5699724995cdd5350709cab8c9f595088d2cfee0 (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.markdown | 25 |
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'); |