Created
October 4, 2010 03:04
-
-
Save JakSprats/609202 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once 'Predis.php'; | |
$single_server = array( | |
'host' => '192.168.1.115', | |
'port' => 6379, | |
'database' => 0 | |
); | |
// simple set and get scenario | |
$redis = new Predis\Client($single_server); | |
$retval = $redis->incr('requests'); | |
echo $retval . "\n"; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment