/** */
require_once( "commandLine.inc" );
+require_once("memcached-client.php");
$mcc = new memcached( array('persistant' => true) );
$mcc->set_servers( $wgMemCachedServers );
$bad = false;
$quit = false;
$line = readconsole( "> " );
+ if ($line === false) exit;
$args = explode( " ", $line );
$command = array_shift( $args );
switch ( $command ) {
var_dump( $res );
}
break;
+ case "getsock":
+ $res = $mcc->get( $args[0] );
+ $sock = $mcc->get_sock( $args[0] );
+ var_dump( $sock );
+ break;
case "set":
$key = array_shift( $args );
if ( $args[0] == "#" && is_numeric( $args[1] ) ) {
print "MemCached error\n";
}
break;
+ case "dumpmcc":
+ var_dump( $mcc );
+ break;
case "quit":
+ case "exit":
$quit = true;
break;
default: