Fix #475, Fix #484, not clearing cache group if dummy driver is used

This commit is contained in:
Kijin Sung 2016-05-05 15:39:15 +09:00
parent 5c64fec920
commit 9d3c69120c

View file

@ -161,7 +161,7 @@ class File implements \Rhymix\Framework\Drivers\CacheInterface
public function incr($key, $amount)
{
$value = intval($this->get($key));
$success = $this->set($key, $value + $amount, 0);
$success = $this->set($key, $value + $amount, 0, true);
return $success ? ($value + $amount) : false;
}