File tree 1 file changed +31
-0
lines changed
1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -1772,6 +1772,37 @@ public function persist( $key ) {}
1772
1772
*/
1773
1773
public function mset ( array $ array ) {}
1774
1774
1775
+
1776
+ /**
1777
+ * Returns the values of all specified keys.
1778
+ *
1779
+ * For every key that does not hold a string value or does not exist,
1780
+ * the special value false is returned. Because of this, the operation never fails.
1781
+ *
1782
+ * @param array $array
1783
+ * @return array
1784
+ * @link http://redis.io/commands/mget
1785
+ * @example
1786
+ * <pre>
1787
+ * $redis->delete('x', 'y', 'z', 'h'); // remove x y z
1788
+ * $redis->mset(array('x' => 'a', 'y' => 'b', 'z' => 'c'));
1789
+ * $redis->hset('h', 'field', 'value');
1790
+ * var_dump($redis->mget(array('x', 'y', 'z', 'h')));
1791
+ * // Output:
1792
+ * // array(3) {
1793
+ * // [0]=>
1794
+ * // string(1) "a"
1795
+ * // [1]=>
1796
+ * // string(1) "b"
1797
+ * // [2]=>
1798
+ * // string(1) "c"
1799
+ * // [3]=>
1800
+ * // bool(false)
1801
+ * // }
1802
+ * </pre>
1803
+ */
1804
+ public function mget ( array $ array ) {}
1805
+
1775
1806
/**
1776
1807
* @see mset()
1777
1808
* @param array $array
You can’t perform that action at this time.
0 commit comments