From c97703194a4afc13555f694d62e1d533f0a4acbc Mon Sep 17 00:00:00 2001 From: Maurits van der Schee Date: Tue, 30 Jun 2015 03:46:14 +0200 Subject: [PATCH] Update MemcacheInterface.php --- Cache/MemcacheInterface.php | 47 +++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 26 deletions(-) diff --git a/Cache/MemcacheInterface.php b/Cache/MemcacheInterface.php index 5df0814..a476874 100644 --- a/Cache/MemcacheInterface.php +++ b/Cache/MemcacheInterface.php @@ -1,30 +1,25 @@ getVersion()=='3.0.8') { - interface MemcacheInterface { - public function setFailureCallback($failureCallback); - public function getServerStatus($host,$port=11211); - public function getVersion(); - public function add($key,$var=null,$flag=0,$exptime=0); - public function set($key,$var=null,$flag=0,$exptime=0); - public function replace($key,$var=null,$flag=0,$exptime=0); - public function cas($key,$var=null,$flag=0,$exptime=0,$cas=0); - public function prepend($key,$var=null,$flag=0,$exptime=0); - public function get($key,&$flags=null,&$cas=null); - public function getStats($type='',$slabid=0,$limit=100); - public function getExtendedStats($type='',$slabid=0,$limit=100); - public function setCompressThreshold($threshold,$minSavings=0.2); - public function delete($key,$exptime=0); - public function increment($key,$value=1,$defval=0,$exptime=0); - public function decrement($key,$value=1,$defval=0,$exptime=0); - public function close(); - public function flush($delay=0); - public function addServer($host,$tcpPort=11211,$udpPort=0,$persistent=true,$weight=1,$timeout=1,$retryInterval=15,$status=true); - public function connect($host,$tcpPort=11211,$udpPort=0,$persistent=true,$weight=1,$timeout=1,$retryInterval=15); - public function findServer($key); - } -} else { - throw new \Exception('LswMemcacheBundle does not support version '.$extension->getVersion().' of the memcache extension.'); +interface MemcacheInterface { + public function setFailureCallback($failureCallback); + public function getServerStatus($host,$port=11211); + public function getVersion(); + public function add($key,$var=null,$flag=0,$exptime=0); + public function set($key,$var=null,$flag=0,$exptime=0); + public function replace($key,$var=null,$flag=0,$exptime=0); + public function cas($key,$var=null,$flag=0,$exptime=0,$cas=0); + public function prepend($key,$var=null,$flag=0,$exptime=0); + public function get($key,&$flags=null,&$cas=null); + public function getStats($type='',$slabid=0,$limit=100); + public function getExtendedStats($type='',$slabid=0,$limit=100); + public function setCompressThreshold($threshold,$minSavings=0.2); + public function delete($key,$exptime=0); + public function increment($key,$value=1,$defval=0,$exptime=0); + public function decrement($key,$value=1,$defval=0,$exptime=0); + public function close(); + public function flush($delay=0); + public function addServer($host,$tcpPort=11211,$udpPort=0,$persistent=true,$weight=1,$timeout=1,$retryInterval=15,$status=true); + public function connect($host,$tcpPort=11211,$udpPort=0,$persistent=true,$weight=1,$timeout=1,$retryInterval=15); + public function findServer($key); }