编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « 预定义常量
  • 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 fann 函数 返回最后一个错误数字。php fann 函数 返回 rprop 训练的递增系数php fann 函数 给每个连接赋一个介于 min weight 和 max weight 之间的随机权重。php fann 函数 为输出层设置激活函数php gmagick returns a grayscale image with a three dimensional effectphp gmagick returns the composite operator associated with the imagephp gmagick returns the named image profilephp tokyo tyrant 简介php recursivedirectoryiterator get sub pathphp recursiveiteratoriterator access the current element valuephp recursivetreeiterator begin childrenphp tokyo tyrant 预定义常量php tokyo tyrant 范例php tokyo tyrant 安装/配置
关注编程学问公众号
编程学问网 湘ICP备20001732号