123456789101112131415161718192021222324252627282930 |
- <?php
- require_once 'SharedConfigurations.php';
- $mkv = array(
- 'usr:0001' => 'First user',
- 'usr:0002' => 'Second user',
- 'usr:0003' => 'Third user'
- );
- $redis = new Predis\Client(REDIS_HOST, REDIS_PORT);
- $redis->select(REDIS_DB);
- $redis->mset($mkv);
- $retval = $redis->mget(array_keys($mkv));
- print_r($retval);
- ?>
|