]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Cache/MemcacheCache.php
Add Drone CI
[friendica.git] / src / Core / Cache / MemcacheCache.php
index 002aabdfde68cfb44e5d532da42f1d23c6d686b7..53a6523f56bba477ecb7cf5ca62bec63899ba430 100644 (file)
@@ -37,7 +37,7 @@ class MemcacheCache extends Cache implements IMemoryCache
                $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');
                }
        }
@@ -148,7 +148,10 @@ class MemcacheCache extends Cache implements IMemoryCache
                return $this->memcache->add($cachekey, serialize($value), MEMCACHE_COMPRESSED, $ttl);
        }
 
-       public function __toString()
+       /**
+        * {@inheritDoc}
+        */
+       public function getName()
        {
                return self::TYPE_MEMCACHE;
        }