Maison >développement back-end >tutoriel php >PHP联接Memcache代码
PHP连接Memcache代码
<?php$mem = new Memcache;$mem->connect('127.0.0.1', 11211) or die ("Could not connect");$mem->set('key', 'This is a test!', 0, 60);$val = $mem->get('key');echo $val;?>