Returns the call counter for the get, set and delete methods.
string $method: (optional) The name of the method to return the call counter for.
string $cid: (optional) The name of the cache id to return the call counter for.
int|array An integer if both method and cid is given, an array otherwise.
public function getCounter($method = NULL, $cid = NULL) {
if ($method && $cid) {
return isset($this->counter[$method][$cid]) ? $this->counter[$method][$cid] : 0;
}
elseif ($method) {
return isset($this->counter[$method]) ? $this->counter[$method] : array();
}
else {
return $this->counter;
}
}