Skip to content
This repository has been archived by the owner on Oct 28, 2020. It is now read-only.

Commit

Permalink
Update MemcacheInterface.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Maurits van der Schee committed Jun 30, 2015
1 parent e944be0 commit c977031
Showing 1 changed file with 21 additions and 26 deletions.
47 changes: 21 additions & 26 deletions Cache/MemcacheInterface.php
Original file line number Diff line number Diff line change
@@ -1,30 +1,25 @@
<?php
namespace Lsw\MemcacheBundle\Cache;

$extension = new \ReflectionExtension('memcache');
if ($extension->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);
}

0 comments on commit c977031

Please sign in to comment.