ZF-6213: To get memcache object

Description

It would be nice if we can get the memcache object

 
public function getMemcacheObject(){
    return $this->_memcache;
}

It would be useful to do some stats

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

Comments

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()