Exemplo n.º 1
0
 public function create(CacheItem $item)
 {
     if (!File::isDir($this->dir) && File::makeDir($this->dir) === false) {
         throw new RuntimeException("Unable to create cache directory: {$this->dir}.");
     }
     return File::write($this->getPath(), serialize($item));
 }