Update MemcachedCacheSource.class.php
authorSascha Greuel <SoftCreatR@users.noreply.github.com>
Tue, 3 Oct 2017 05:34:48 +0000 (07:34 +0200)
committerGitHub <noreply@github.com>
Tue, 3 Oct 2017 05:34:48 +0000 (07:34 +0200)
wcfsetup/install/files/lib/system/cache/source/MemcachedCacheSource.class.php

index 6546ffb160527fa00e88ed3aa05eb90a4e4efc55..5abb661c0598a55861d2167622e3a704dd6f9d27 100644 (file)
@@ -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);
+       }
 }