<?php

namespace App\Framework\View\Caching;

interface FragmentCache
{
    public function fragment(string $key, callable $generator, int $ttl, array $tags = []): string;
    public function invalidateFragment(string $key): bool;
    public function invalidateByTags(array $tags): int;
    public function hasFragment(string $key): bool;
}
