Campustream 1.0
A social network MQP for WPI
|
00001 <? 00002 00003 group('redis'); 00004 00005 desc('Execute arbitrary Redis commands'); 00006 task('execute', function ($args) { 00007 00008 $r = RedisManager::connection(); 00009 $comm = array_shift($args); 00010 00011 echo "Executing Redis $comm command...\n"; 00012 $result = call_user_func_array(array($r, $comm), $args); 00013 echo "Finished! Result:\n"; 00014 print_r($result); 00015 00016 });