Skip to content

Commit 3e98666

Browse files
committed
Ooops, lost mGet()
1 parent db576c3 commit 3e98666

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

redisphp.php

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1792,6 +1792,37 @@ public function persist( $key ) {}
17921792
*/
17931793
public function mset( array $array ) {}
17941794

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+
17951826
/**
17961827
* @see mset()
17971828
* @param array $array

0 commit comments

Comments
 (0)