$memcache_host = $config->get('system', 'memcache_host');
$memcache_port = $config->get('system', 'memcache_port');
- if (!$this->memcache->connect($memcache_host, $memcache_port)) {
+ if (!@$this->memcache->connect($memcache_host, $memcache_port)) {
throw new Exception('Expected Memcache server at ' . $memcache_host . ':' . $memcache_port . ' isn\'t available');
}
}
return $this->memcache->add($cachekey, serialize($value), MEMCACHE_COMPRESSED, $ttl);
}
- public function __toString()
+ /**
+ * {@inheritDoc}
+ */
+ public function getName()
{
return self::TYPE_MEMCACHE;
}