Example #1
0
 public static function flush($group = null, $key = null)
 {
     if ($group === null) {
         File::removeAllFrom(self::$dir);
     } else {
         if ($key == null) {
             return File::removeAllFrom(self::$dir . '/' . String::replace('.', '/', $group));
         } else {
             return File::remove(self::$dir . '/' . String::replace('.', '/', $group) . '/' . $key);
         }
     }
 }