Ensure that clear() returns bool in all cache drivers

This commit is contained in:
Kijin Sung 2016-04-21 22:32:33 +09:00
parent 7beaff8241
commit 115ffa937e
3 changed files with 4 additions and 1 deletions

View file

@ -171,7 +171,7 @@ class File implements \Rhymix\Framework\Drivers\CacheInterface
*/
public function clear()
{
Storage::deleteDirectory($this->_dir);
return Storage::deleteDirectory($this->_dir) ? true : false;
}
/**