... and here finally comes Predis!

This commit is contained in:
Daniele Alessandri
2009-11-07 13:10:51 +01:00
commit 34a616cd95
10 changed files with 2695 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
<?php
require_once 'SharedConfigurations.php';
// simple set and get scenario
$redis = new Predis\Client(REDIS_HOST, REDIS_PORT);
$redis->select(REDIS_DB);
$redis->set('library', 'predis');
$retval = $redis->get('library');
print_r($retval);
/* OUTPUT
predis
*/
?>