Lines Matching defs:path
25 private $path = '';
32 * @param string $path Filesystem path to the disk cache location
39 public function __construct($path, $prefix = '', $suffix = '')
41 if (empty($path)) {
42 throw new InvalidArgumentException('Must specify disk cache path');
43 } elseif (!is_dir($path)) {
44 @mkdir($path, 0777, true);
46 if (!is_dir($path)) {
47 throw new RuntimeException('Could not create cache file path');
51 $this->path = $path;
57 * Gets the full disk path for a given cache item's file,
58 * taking into account the cache path, optional prefix,
63 * @return string full disk path of cached item
67 return $this->path . DIRECTORY_SEPARATOR .
80 $path = $this->getPath($name);
82 return (file_exists($path)) ?
83 unserialize(file_get_contents($path)) : false;
96 $path = $this->getPath($name);
98 file_put_contents($path, serialize($value));
110 $path = $this->getPath($name);
112 unlink($path);