Skip to content

Commit

Permalink
additional tags for memcache
Browse files Browse the repository at this point in the history
  • Loading branch information
muxx committed May 18, 2014
1 parent 9598b4e commit 2eeb4dc
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Cache/Memcache.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
class Memcache extends \Memcache
{
protected $stopwatch;
protected $stopwatchAdditionalTags = array();
protected $serverName;

public function addWatchedServer(
Expand All @@ -22,9 +23,14 @@ public function setStopwatch(Stopwatch $stopwatch)
$this->stopwatch = $stopwatch;
}

public function getStopwatchEvent($methodName)
public function setStopwatchTags(array $tags)
{
$tags = array();
$this->stopwatchAdditionalTags = $tags;
}

protected function getStopwatchEvent($methodName)
{
$tags = $this->stopwatchAdditionalTags;

$v = explode('::', $methodName);
if (sizeof($v) > 1) {
Expand Down

0 comments on commit 2eeb4dc

Please sign in to comment.