php调用KyotoTycoon测试代码
<?php require_once 'Net/KyotoTycoon.php'; use Net\KyotoTycoon; $cacheManager = new KyotoTycoon(array( 'host' => 'localhost', 'port' => 1978 )); $cacheManager->set('foo', 'bar'); $value = $cacheManager->get('foo'); echo $value . "\n";