编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « 预定义常量
  • TokyoTyrant »
  • PHP Manual
  • tokyo_tyrant
  • 范例

范例

Basic usage

Example #1 Putting and getting a key-value pair

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

以上例程会输出:

value
相关文章
php 针对各数据库系统对应的扩展 tokyo tyrantphp tokyo tyrant the tokyotyrant classphp tokyo tyrant the tokyotyrantexception classphp tokyo tyrant the tokyotyrantiterator classphp tokyo tyrant the tokyotyrantquery classphp tokyo tyrant the tokyotyranttable classphp cairo 函数 descriptionphp cairo 函数 descriptionphp cairo 函数 descriptionphp cairo 函数 descriptionphp date/time 函数 别名 datetimezone getlocationphp trader 函数 average directional movement index ratingphp trader 函数 three outside up/downphp tokyo tyrant 简介php oauth 生成 oauth 头信息字符串签名php oauthprovider 调用 consumernoncehandler 回调函数php oci collection assigns a value to the collection from another existing collectionphp tokyo tyrant 预定义常量php tokyo tyrant 范例php tokyo tyrant 安装/配置
关注编程学问公众号
编程学问网 湘ICP备20001732号