This article mainly introduces a simple example of php calling KyotoTycoon, which involves the simple usage of php calling KyotoTycoon. It has some reference value. For more information, see
This article mainly introduces a simple example of php calling KyotoTycoon, which involves the simple usage of php calling KyotoTycoon. It has some reference value. For more information, see
This example describes how php calls KyotoTycoon. Share it with you for your reference. The details are as follows:
Kyoto Tycoon (KT) is one of the Mikio Hirabayashi series of Tokyo Tyrant authors. KT is a database network layer service that provides a plug-in mechanism to mount almost all database storage devices.
Here is a simple application example:
<? Phprequire_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 help you with php programming.
,