范例

Basic usage

示例 #1 Putting and getting a key-value pair

<?php
$tt 
= new TokyoTyrant("localhost");
$tt->put("key""value");
echo 
$tt->get("key");
?>

以上例程会输出:

value