Skip to content

Instantly share code, notes, and snippets.

@JakSprats
Created October 4, 2010 03:04
Show Gist options
  • Save JakSprats/609202 to your computer and use it in GitHub Desktop.
Save JakSprats/609202 to your computer and use it in GitHub Desktop.
<?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