PHP:如何获取当前的memcached对象持久性ID

时间:2016-04-29 19:23:32

标签: php memcached

  

有没有办法获取当前的memcached实例持久性ID   PHP?

// Some place in code     
$persistence = 'my servername_' . md5(unique()); 
$memcachedObject = new Memcached($persistence); 

然后在其他地方,比如:

$memcachedObject->getPersistenceId();

0 个答案:

没有答案