PHP 用 YAML パーサ spyc の結果をキャッシュする方法 2006-03-17-2: [PHP] <?php class CacheYAML { var $cache_dir; var $filename; var $cache_filename; function CacheYAML($cache_dir, $filename) { $this->cache_dir = $cache_dir; $this->filename = $filename; $this->cache_filename = $cache_dir . DIRECTORY_SEPARATOR . md5($filename); } function getData() { return $this->isCached() ? $this->load() : $this->store(); } functio