This repository has been archived by the owner on Oct 28, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |