mirror of
https://github.com/predis/predis.git
synced 2026-08-25 01:19:37 +00:00
... and here finally comes Predis!
This commit is contained in:
@@ -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
|
||||
*/
|
||||
?>
|
||||
Reference in New Issue
Block a user