This article mainly introduces the PHP call Kyototycoon Simple instance, involves the simple use method which the PHP calls Kyototycoon, has the certain reference value, needs the friend to refer to the next
The example in this article describes how PHP calls Kyototycoon. Specific as follows:
Kyoto Tycoon (KT) is one of the works of Tokyo Tyrant's author Mikio Hirabayashi, KT is a database network layer service that provides a plug-in mechanism to mount almost any database storage device.
Here is an example of a simple application:
<?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";
Summary : The above is the entire content of this article, I hope to be able to help you learn.
Related recommendations:
PHP form data Validation class
PHP implementation of Chinese character verification code
PHP sends post, get requests, and action cookies based on Curl
PHP recursive traversal for unlimited classification
PHP Read configuration file class instance