@@ -120,8 +120,8 @@ Set the string value in argument as value of the key if the key doesn't already
120
120
121
121
##### Examples
122
122
<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 */
125
125
</pre >
126
126
127
127
## delete
@@ -176,9 +176,9 @@ Verify if the specified key exists.
176
176
* BOOL* : If the key exists, return ` TRUE ` , otherwise return ` FALSE ` .
177
177
##### Examples
178
178
<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 */
182
182
</pre >
183
183
184
184
## incr
@@ -914,7 +914,7 @@ Sets an expiration date (a timeout) on an item.
914
914
$redis->set('x', '42');
915
915
$redis->setTimeout('x', 3); // x will disappear in 3 seconds.
916
916
sleep(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.
918
918
</pre >
919
919
920
920
## expireAt
@@ -934,7 +934,7 @@ $redis->set('x', '42');
934
934
$now = time(NULL); // current timestamp
935
935
$redis->setTimeout('x', $now + 3); // x will disappear in 3 seconds.
936
936
sleep(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.
938
938
</pre >
939
939
940
940
## getKeys
@@ -1660,9 +1660,9 @@ Verify if the specified member exists in a key.
1660
1660
* BOOL* : If the member exists in the hash table, return ` TRUE ` , otherwise return ` FALSE ` .
1661
1661
##### Examples
1662
1662
<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 */
1666
1666
</pre >
1667
1667
1668
1668
## hIncrBy
0 commit comments