Skip to content

Instantly share code, notes, and snippets.

@borkweb
Created May 7, 2013 12:24
Show Gist options
  • Save borkweb/5532175 to your computer and use it in GitHub Desktop.
Save borkweb/5532175 to your computer and use it in GitHub Desktop.
Super basic memcache flush script to drop on my dev servers.
<?php
$memcache = new Memcache;
$memcache->connect( 'localhost', 11211 );
if ( $memcache->flush() ) {
echo 'BOOM! Flushed!<br>';
} else {
echo 'Memcache Y U NO FLUSH?<br>';
}//end else
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment