Skip to content

Commit b618803

Browse files
committed
Ooops, lost mGet()
1 parent 77d662a commit b618803

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
@@ -1772,6 +1772,37 @@ public function persist( $key ) {}
17721772
*/
17731773
public function mset( array $array ) {}
17741774

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+
17751806
/**
17761807
* @see mset()
17771808
* @param array $array

0 commit comments

Comments
 (0)