免费注册
帮助文档(华北一、二)
php访问

  •  

    <?php

        $memcache = new Memcache;

        $memcache->connect('10.4.7.17', 11211);

        $key = "testkey";

        $tvalue = "testvalue";

        $memcache->set($key, $tvalue, false, 10);

        $nvalue = $memcache->get($key);

        print_r($nvalue . "\n");

    ?>