Skip to content

Instantly share code, notes, and snippets.

@lalala
Created January 19, 2012 16:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lalala/1640962 to your computer and use it in GitHub Desktop.
Save lalala/1640962 to your computer and use it in GitHub Desktop.
<?php
$redis = new Redis;
$redis->connect('localhost', 6397);
try {
$redis->set('foo', 'bar');
} catch ( Exception $e ) {
die($e->getMessage()."\n");
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment