ZF-6213: To get memcache object

Issue Type: Improvement Created: 2009-04-04T23:15:03.000+0000 Last Updated: 2009-04-24T12:44:56.000+0000 Status: Resolved Fix version(s): Reporter: Imthiaz (hmimthiaz) Assignee: Fabien MARTY (fab) Tags: - Zend_Cache

Related issues: Attachments:


It would be nice if we can get the memcache object

<pre class="highlight"> 
public function getMemcacheObject(){
    return $this->_memcache;

It would be useful to do some stats

<pre class="highlight"> 
$allServerFailed = true;
$cacheServerStatus = $this->cacheAdapterClassInstance->getMemcacheObject ()->getExtendedStats ();
if (! empty ( $cacheServerStatus )) {
    foreach ( $cacheServerStatus as $server => $status ) {
        if ($status !== false) {
            $allServerFailed = FALSE;


Posted by Fabien MARTY (fab) on 2009-04-24T12:44:55.000+0000

it sounds to specific to me

the memcache object is protected

so you can do a new backend with your method which extends the memcache one

to call your method, you will have to do $cache->getBackend()->yourMethod()

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.