SimpleSetAndGet.php 240 B

12345678910111213141516
  1. <?php
  2. require_once 'SharedConfigurations.php';
  3. // simple set and get scenario
  4. $redis = Predis\Client::create($configurations);
  5. $redis->set('library', 'predis');
  6. $retval = $redis->get('library');
  7. print_r($retval);
  8. /* OUTPUT
  9. predis
  10. */
  11. ?>