编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « 预定义常量
  • 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 firebird/interbase 函数 add a user to a security databasephp firebird/interbase 函数 request statistics about a databasephp firebird/interbase 函数 assigns a name to a result setphp iconv 函数 获取 iconv 扩展的内部配置变量php imagick descriptionphp imagick exports raw image pixelsphp imagick returns the imagemagick api copyright as a stringphp tokyo tyrant 简介php 预定义变量 session 变量php 安装/配置 运行时配置php rrdgraph sets the options for rrd graph exportphp tokyo tyrant 预定义常量php tokyo tyrant 范例php tokyo tyrant 安装/配置
关注编程学问公众号
编程学问网 湘ICP备20001732号