File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -1792,6 +1792,37 @@ public function persist( $key ) {}
1792
1792
*/
1793
1793
public function mset ( array $ array ) {}
1794
1794
1795
+
1796
+ /**
1797
+ * Returns the values of all specified keys.
1798
+ *
1799
+ * For every key that does not hold a string value or does not exist,
1800
+ * the special value false is returned. Because of this, the operation never fails.
1801
+ *
1802
+ * @param array $array
1803
+ * @return array
1804
+ * @link http://redis.io/commands/mget
1805
+ * @example
1806
+ * <pre>
1807
+ * $redis->delete('x', 'y', 'z', 'h'); // remove x y z
1808
+ * $redis->mset(array('x' => 'a', 'y' => 'b', 'z' => 'c'));
1809
+ * $redis->hset('h', 'field', 'value');
1810
+ * var_dump($redis->mget(array('x', 'y', 'z', 'h')));
1811
+ * // Output:
1812
+ * // array(3) {
1813
+ * // [0]=>
1814
+ * // string(1) "a"
1815
+ * // [1]=>
1816
+ * // string(1) "b"
1817
+ * // [2]=>
1818
+ * // string(1) "c"
1819
+ * // [3]=>
1820
+ * // bool(false)
1821
+ * // }
1822
+ * </pre>
1823
+ */
1824
+ public function mget ( array $ array ) {}
1825
+
1795
1826
/**
1796
1827
* @see mset()
1797
1828
* @param array $array
You can’t perform that action at this time.
0 commit comments