编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « 预定义常量
  • 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 范例 xml 元素结构例程php 安装/配置 安装php 安装/配置 资源类型php sodium 函数 overwrite buf with zerosphp posix 正则表达式函数 用正则表达式不区分大小写将字符串分割到数组中php sqlite 函数 fetches the next row from a result set as an arrayphp tokyo tyrant 简介php mysql xdevapi tableupdate set search filterphp 安装/配置 需求php tokyo tyrant 预定义常量php tokyo tyrant 范例php tokyo tyrant 安装/配置php yaf dispatcher 设置路由的默认模块php yaf loader the import purpose
关注编程学问公众号
编程学问网 湘ICP备20001732号