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