getCacheKey($key), $ttl, $callback); } /** * Invalidate component cache */ protected function invalidateCache(string $key = null): void { if ($key) { Cache::forget($this->getCacheKey($key)); } else { // Clear all cache for this component Cache::flush(); } } }