From 65371935a40e3a04cd9a8a689cd79913a3d255b6 Mon Sep 17 00:00:00 2001 From: Sascha Greuel Date: Tue, 3 Oct 2017 07:34:48 +0200 Subject: [PATCH] Update MemcachedCacheSource.class.php --- .../cache/source/MemcachedCacheSource.class.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/wcfsetup/install/files/lib/system/cache/source/MemcachedCacheSource.class.php b/wcfsetup/install/files/lib/system/cache/source/MemcachedCacheSource.class.php index 6546ffb160..5abb661c05 100644 --- a/wcfsetup/install/files/lib/system/cache/source/MemcachedCacheSource.class.php +++ b/wcfsetup/install/files/lib/system/cache/source/MemcachedCacheSource.class.php @@ -198,4 +198,15 @@ class MemcachedCacheSource implements ICacheSource { return $flush.'_'.$cacheName; } + + /** + * Returns the Memcached server version + * + * @return string + */ + public function getMemcachedVersion() { + $versions = $this->memcached->getVersion(); + + return reset($versions); + } } -- 2.20.1