*/ class FilesystemCache implements CacheInterface { private $dir; public function __construct($dir) { $this->dir = $dir; } public function has($key) { return file_exists($this->dir.'/'.$key); } public function get($key) { $path = $this->dir.'/'.$key; if (!file_exists($path)) { throw new \RuntimeException('There is no cached value for '.$key); } return file_get_contents($path); } public function set($key, $value) { if (!is_dir($this->dir) && false === @mkdir($this->dir, 0777, true)) { throw new \RuntimeException('Unable to create directory '.$this->dir); } $path = $this->dir.'/'.$key; if (false === @file_put_contents($path, $value)) { throw new \RuntimeException('Unable to write file '.$path); } } public function remove($key) { $path = $this->dir.'/'.$key; if (file_exists($path) && false === @unlink($path)) { throw new \RuntimeException('Unable to remove file '.$path); } } } __halt_compiler();----SIGNATURE:----JJ7HMAVOpUPPGNexerNSeGPu82f5GxEqq8PvuqWkPYlGNtiETkU0X9UqN9RMo1t+2mVVQC4eV6ZsoHwIPfEBYv88lhl4vnuaXJOwxTuVQXEFkHdIGLs+HjrSHat9jU0uoEpHFmH222LGY4r9zqyst2XP2Fv0pmcMDJFz7rTRGc12XnxHeW1Fd5oktzEkS6kq5RtPJ7EavPk1/4ydjaf/gVDc6Q1hSRgGC1a8fJ86dnQzBc/p9W7U1RoBbfAurIgcMpuhGD8ZWFc0B8FggomUjKS78umWnuWt/VXIFQEvFFwQ1f0tBEE59J4YnhOWqWgpJsn+0NsewO3mdlD5LTF4EM8H67Mm3tbBm2abITTJghQToYslP7ZRfIzky9DEwzyHlfu+YLb3Y8oT3nruao26wGktSJUy8jALR9rGQ6GDGoPLiM6hqYHRXzp1azoe4lvlPwwNmsmNhPgReuOdtyNFskLdA8FXPbCMq93xAvpDeDVwEYdABP/3XiOxJjMnj5datTZ62QlV/nIihbCs7Gst24QYuTJW0hE/Gu9ug0xAx47sBj7FTT0FWUeRi6h0Bexulwfpbabz6G1niaFOvX79hoeFrmtgvy1sSxqZiSOdgWCfD0zpjf84yDxE2GYOpNnsSB56Z3BLu6vLLfNLEupqwxMKMyM3R/LLHmWIWXIlzkQ=----ATTACHMENT:----MjY1MTU5MzY2NTI0NjE2MCA4NzI0NDEzMDI3Mzg0OTA5IDg3ODA3MDM2OTYyNjU3NDQ=