cacheGet($cacheKey); if ($cached) return $cached; $movie = $this->fetchSingleFromApi("optimized_movies", $url); if (!$movie) return null; $this->cacheSet($cacheKey, $movie); return $movie; } }