note 115742 deleted from memcached.getallkeys by stelianm

From: Date: Tue, 16 Sep 2014 18:20:42 +0000
Subject: note 115742 deleted from memcached.getallkeys by stelianm
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-200458@lists.php.net to get a copy of this message
Note Submitter: Anonymous ---- <?php // This assumes a single server function getMemcachedKeys() { $mc = new Memcached(); $mc->setOption(Memcached::OPT_LIBKETAMA_COMPATIBLE, true); if (!count($mc->getServerList())) { $mc->addServers(array( array('127.0.0.1',11211), )); } return $mc->getAllKeys(); } header('Content-Type: text/plain; charset=utf-8'); print_r(getMemcachedKeys()); ?>

« previous php.notes (#200458) next »