chore: complete update
This commit is contained in:
16
src/Framework/View/Caching/SmartCache.php
Normal file
16
src/Framework/View/Caching/SmartCache.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Framework\View\Caching;
|
||||
|
||||
use App\Framework\View\RenderContext;
|
||||
|
||||
interface SmartCache
|
||||
{
|
||||
public function isEnabled(): bool;
|
||||
|
||||
public function render(RenderContext $context, callable $fallbackRenderer): string;
|
||||
|
||||
public function invalidateCache(?string $template = null): int;
|
||||
|
||||
public function getCacheStats(): array;
|
||||
}
|
||||
Reference in New Issue
Block a user