This article describes the method of php calling KyotoTycoon. Share it with everyone for your reference. The details are as follows:
Kyoto Tycoon (KT for short) is one of the series of works by Mikio Hirabayashi, the author of Tokyo Tyrant. KT is a database network layer service that provides a plug-in mechanism that can mount almost all database storage devices.
Here is a simple application example:
<?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";
I hope this article will be helpful to everyone’s PHP programming design.