$segments */ public static function key(string $group, array $segments = []): string { $parts = array_filter( array_map(static fn (string|int $segment): string => (string) $segment, $segments), static fn (string $segment): bool => $segment !== '', ); return implode('.', array_merge(['web', $group], $parts)); } /** * @template TValue * * @param Closure(): TValue $callback * @return TValue */ public static function remember(string $key, Closure $callback): mixed { return Cache::flexible($key, [self::TtlSeconds, self::StaleSeconds], $callback); } }