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-08-30 20:13:57 +0400
committerNicolas Favre-Felix <n.favrefelix@gmail.com>2010-08-30 20:13:57 +0400
commitaeba44699a78b2958593c22ec5f8be94530541d9 (patch)
tree66d42afaac41994e95c461f86c5952385d418615 /README.markdown
parent6edae7c4b04ff9ab7f5efdf4b63dece3e5805ecf (diff)
Typos (thanks “encoder” on IRC)
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown20
1 files changed, 10 insertions, 10 deletions
diff --git a/README.markdown b/README.markdown
index 08c74ef3..8a99940b 100644
--- a/README.markdown
+++ b/README.markdown
@@ -120,8 +120,8 @@ Set the string value in argument as value of the key if the key doesn't already
##### Examples
<pre>
-$this->redis->setnx('key', 'value'); /* return TRUE */
-$this->redis->setnx('key', 'value'); /* return FALSE */
+$redis->setnx('key', 'value'); /* return TRUE */
+$redis->setnx('key', 'value'); /* return FALSE */
</pre>
## delete
@@ -176,9 +176,9 @@ Verify if the specified key exists.
*BOOL*: If the key exists, return `TRUE`, otherwise return `FALSE`.
##### Examples
<pre>
-$this->set('key', 'value');
-$this->exists('key'); /* TRUE */
-$this->exists('NonExistingKey'); /* FALSE */
+$redis->set('key', 'value');
+$redis->exists('key'); /* TRUE */
+$redis->exists('NonExistingKey'); /* FALSE */
</pre>
## incr
@@ -914,7 +914,7 @@ Sets an expiration date (a timeout) on an item.
$redis->set('x', '42');
$redis->setTimeout('x', 3); // x will disappear in 3 seconds.
sleep(5); // wait 5 seconds
-$this->get('x'); // will return `FALSE`, as 'x' has expired.
+$redis->get('x'); // will return `FALSE`, as 'x' has expired.
</pre>
## expireAt
@@ -934,7 +934,7 @@ $redis->set('x', '42');
$now = time(NULL); // current timestamp
$redis->setTimeout('x', $now + 3); // x will disappear in 3 seconds.
sleep(5); // wait 5 seconds
-$this->get('x'); // will return `FALSE`, as 'x' has expired.
+$redis->get('x'); // will return `FALSE`, as 'x' has expired.
</pre>
## getKeys
@@ -1660,9 +1660,9 @@ Verify if the specified member exists in a key.
*BOOL*: If the member exists in the hash table, return `TRUE`, otherwise return `FALSE`.
##### Examples
<pre>
-$this->hSet('h', 'a', 'x');
-$this->hExists('h', 'a'); /* TRUE */
-$this->hExists('h', 'NonExistingKey'); /* FALSE */
+$redis->hSet('h', 'a', 'x');
+$redis->hExists('h', 'a'); /* TRUE */
+$redis->hExists('h', 'NonExistingKey'); /* FALSE */
</pre>
## hIncrBy