- Add comprehensive health check system with multiple endpoints - Add Prometheus metrics endpoint - Add production logging configurations (5 strategies) - Add complete deployment documentation suite: * QUICKSTART.md - 30-minute deployment guide * DEPLOYMENT_CHECKLIST.md - Printable verification checklist * DEPLOYMENT_WORKFLOW.md - Complete deployment lifecycle * PRODUCTION_DEPLOYMENT.md - Comprehensive technical reference * production-logging.md - Logging configuration guide * ANSIBLE_DEPLOYMENT.md - Infrastructure as Code automation * README.md - Navigation hub * DEPLOYMENT_SUMMARY.md - Executive summary - Add deployment scripts and automation - Add DEPLOYMENT_PLAN.md - Concrete plan for immediate deployment - Update README with production-ready features All production infrastructure is now complete and ready for deployment.
51 lines
1.4 KiB
PHP
51 lines
1.4 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Framework\LiveComponents\Performance;
|
|
|
|
/**
|
|
* Interface for Component Metadata Cache
|
|
*
|
|
* Provides testable contract for metadata caching operations.
|
|
* Enables mocking in tests without relying on final class implementations.
|
|
*
|
|
* Framework Pattern: Interface-driven design for testability
|
|
*/
|
|
interface ComponentMetadataCacheInterface
|
|
{
|
|
/**
|
|
* Get compiled metadata for component
|
|
*
|
|
* @param string $className Fully qualified class name
|
|
* @return CompiledComponentMetadata Compiled component metadata
|
|
*/
|
|
public function get(string $className): CompiledComponentMetadata;
|
|
|
|
/**
|
|
* Check if component metadata exists in cache
|
|
*
|
|
* @param string $className Fully qualified class name
|
|
* @return bool True if cached, false otherwise
|
|
*/
|
|
public function has(string $className): bool;
|
|
|
|
/**
|
|
* Invalidate cached metadata for component
|
|
*
|
|
* @param string $className Fully qualified class name
|
|
* @return bool True if invalidated, false otherwise
|
|
*/
|
|
public function invalidate(string $className): bool;
|
|
|
|
/**
|
|
* Warm cache for multiple components
|
|
*
|
|
* Pre-compiles and caches metadata for performance-critical components.
|
|
*
|
|
* @param array<string> $classNames List of class names to warm
|
|
* @return int Number of components warmed
|
|
*/
|
|
public function warmCache(array $classNames): int;
|
|
}
|