diff options
author | Nicolas Favre-Felix <n.favrefelix@gmail.com> | 2010-08-30 20:13:57 +0400 |
---|---|---|
committer | Nicolas Favre-Felix <n.favrefelix@gmail.com> | 2010-08-30 20:13:57 +0400 |
commit | aeba44699a78b2958593c22ec5f8be94530541d9 (patch) | |
tree | 66d42afaac41994e95c461f86c5952385d418615 /README.markdown | |
parent | 6edae7c4b04ff9ab7f5efdf4b63dece3e5805ecf (diff) |
Typos (thanks “encoder” on IRC)
Diffstat (limited to 'README.markdown')
-rw-r--r-- | README.markdown | 20 |
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 |