Home > php教程 > php手册 > php调用KyotoTycoon简单实例,php调用kyototycoon

php调用KyotoTycoon简单实例,php调用kyototycoon

WBOY
Release: 2016-06-13 09:07:54
Original
905 people have browsed it

php调用KyotoTycoon简单实例,php调用kyototycoon

本文实例讲述了php调用KyotoTycoon的方法。分享给大家供大家参考。具体如下:

Kyoto Tycoon(简称KT)是Tokyo Tyrant 的作者Mikio Hirabayashi 的系列作品之一,KT 是一个数据库网络层服务,它提供一个插件机制,可以挂载几乎所有的数据库存储设备。

这里提供一个简单的应用实例:

<&#63;php
require_once 'Net/KyotoTycoon.php';
use Net\KyotoTycoon;
$cacheManager = new KyotoTycoon(array(
  'host' => 'localhost',
  'port' => 1978
));
$cacheManager->set('foo', 'bar');
$value = $cacheManager->get('foo');
echo $value . "\n";
Copy after login

希望本文所述对大家的php程序设计有所帮助。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template