diff --git a/src/Yaml.php b/src/Yaml.php index a2d8e48..c9b2811 100644 --- a/src/Yaml.php +++ b/src/Yaml.php @@ -6,8 +6,8 @@ class Yaml extends File { public function load(string $filePath, FileCache $Cache = null): File { - if (is_a($Cache, 'FileCache')) { - $key = $Cache->key($filePath); + if (is_a($Cache, 'memCrab\Cache\RedisCache')) { + $key = $Cache->fileKey($filePath); if ($Cache->exists($key)) { $this->content = $Cache->get($key); } else { @@ -32,4 +32,4 @@ private function parseYamlFile(string $filePath) { ); } } -} \ No newline at end of file +}