<?php

declare(strict_types=1);

namespace App\Framework\Cache;

#[\Attribute(\Attribute::TARGET_METHOD)]
final class Cacheable
{
    /**
     * @param string|null $key Template z.B.: "user:profile:{id}"
     */
    public function __construct(
        public ?string $key = null,
        public int $ttl = 3600,
    ) {
    }
}
