编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « 预定义常量
  • 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 影响 php 行为的扩展 输出缓冲控制php 文件系统相关扩展 proctitlephp 影响 php 行为的扩展 break the silence operatorphp 针对各数据库系统对应的扩展 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 数组 函数 从关联数组中取得键名php ldap 函数 send ldap pagination controlphp ldap 函数 return first referencephp imagickpixel gets the normalized value of the provided color channelphp imagickpixeliterator returns the current row of imagickpixel objectsphp tokyo tyrant 简介php solrclient checks the threads statusphp solrdismaxquery adds a phrase bigram field pf2 parameter php tokyo tyrant 预定义常量php tokyo tyrant 范例php tokyo tyrant 安装/配置
关注编程学问公众号
编程学问网 湘ICP备20001732号