File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -804,15 +804,21 @@ _**Description**_: Verify if the specified key exists.
804
804
* key*
805
805
806
806
##### * Return value*
807
- * BOOL * : If the key exists, return ` TRUE ` , otherwise return ` FALSE ` .
807
+ * long * : The number of keys tested that do exist .
808
808
809
809
##### * Examples*
810
810
~~~
811
811
$redis->set('key', 'value');
812
- $redis->exists('key'); /* TRUE */
813
- $redis->exists('NonExistingKey'); /* FALSE */
812
+ $redis->exists('key'); /* 1 */
813
+ $redis->exists('NonExistingKey'); /* 0 */
814
+
815
+ $redis->mset(['foo' => 'foo', 'bar' => 'bar', 'baz' => 'baz']);
816
+ $redis->exists(['foo', 'bar', 'baz]); /* 3 */
817
+ $redis->exists('foo', 'bar', 'baz'); /* 3 */
814
818
~~~
815
819
820
+ ** Note** : This function took a single argument and returned TRUE or FALSE in phpredis versions < 4.0.0.
821
+
816
822
### incr, incrBy
817
823
-----
818
824
_ ** Description** _ : Increment the number stored at key by one. If the second argument is filled, it will be used as the integer value of the increment.
You can’t perform that action at this time.
0 commit comments