관리-도구
편집 파일: gh_77.phpt
--TEST-- Test for Github issue #77 --SKIPIF-- <?php $min_version = "1.4.8"; include dirname(__FILE__) . "/skipif.inc"; if (Memcached::LIBMEMCACHED_VERSION_HEX < 0x01000016) die ('skip too old libmemcached'); ?> --FILE-- <?php include dirname (__FILE__) . '/config.inc'; $mc = memc_get_instance (); $key = uniqid ("this_does_not_exist_"); $mc->touch($key, 5); var_dump ($mc->getResultCode() == Memcached::RES_NOTFOUND); $mc->set($key, 1, 5); $mc->set($key, 1, 5); var_dump ($mc->getResultCode() == Memcached::RES_SUCCESS); echo "OK\n"; ?> --EXPECT-- bool(true) bool(true) OK