Skip to content

Instantly share code, notes, and snippets.

@SemanticallyNull
Last active December 14, 2015 23:59
Show Gist options
  • Save SemanticallyNull/5169651 to your computer and use it in GitHub Desktop.
Save SemanticallyNull/5169651 to your computer and use it in GitHub Desktop.
<?php
ini_set('display_errors', '1');
$memcache = new Memcache;
$memcache->connect('orchestra-io.pjekkp.0001.use1.cache.amazonaws.com', 11211);
($memcache->add('testkey', 'It worked!')? "Added data." : "There was a problem adding data.") . "<br/>";
($memcache->get('testkey')?: "This should have worked") . "<br/>";
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment