@@ -120,8 +120,8 @@ Set the string value in argument as value of the key if the key doesn't already
120120
121121##### Examples
122122<pre >
123- $this-> redis->setnx('key', 'value'); /* return TRUE */
124- $this-> redis->setnx('key', 'value'); /* return FALSE */
123+ $redis->setnx('key', 'value'); /* return TRUE */
124+ $redis->setnx('key', 'value'); /* return FALSE */
125125</pre >
126126
127127## delete
@@ -176,9 +176,9 @@ Verify if the specified key exists.
176176* BOOL* : If the key exists, return ` TRUE ` , otherwise return ` FALSE ` .
177177##### Examples
178178<pre >
179- $this ->set('key', 'value');
180- $this ->exists('key'); /* TRUE */
181- $this ->exists('NonExistingKey'); /* FALSE */
179+ $redis ->set('key', 'value');
180+ $redis ->exists('key'); /* TRUE */
181+ $redis ->exists('NonExistingKey'); /* FALSE */
182182</pre >
183183
184184## incr
@@ -914,7 +914,7 @@ Sets an expiration date (a timeout) on an item.
914914$redis->set('x', '42');
915915$redis->setTimeout('x', 3); // x will disappear in 3 seconds.
916916sleep(5); // wait 5 seconds
917- $this ->get('x'); // will return `FALSE`, as 'x' has expired.
917+ $redis ->get('x'); // will return `FALSE`, as 'x' has expired.
918918</pre >
919919
920920## expireAt
@@ -934,7 +934,7 @@ $redis->set('x', '42');
934934$now = time(NULL); // current timestamp
935935$redis->setTimeout('x', $now + 3); // x will disappear in 3 seconds.
936936sleep(5); // wait 5 seconds
937- $this ->get('x'); // will return `FALSE`, as 'x' has expired.
937+ $redis ->get('x'); // will return `FALSE`, as 'x' has expired.
938938</pre >
939939
940940## getKeys
@@ -1660,9 +1660,9 @@ Verify if the specified member exists in a key.
16601660* BOOL* : If the member exists in the hash table, return ` TRUE ` , otherwise return ` FALSE ` .
16611661##### Examples
16621662<pre >
1663- $this ->hSet('h', 'a', 'x');
1664- $this ->hExists('h', 'a'); /* TRUE */
1665- $this ->hExists('h', 'NonExistingKey'); /* FALSE */
1663+ $redis ->hSet('h', 'a', 'x');
1664+ $redis ->hExists('h', 'a'); /* TRUE */
1665+ $redis ->hExists('h', 'NonExistingKey'); /* FALSE */
16661666</pre >
16671667
16681668## hIncrBy
0 commit comments