Enable Discovery debug logging for production troubleshooting

- Add DISCOVERY_LOG_LEVEL=debug
- Add DISCOVERY_SHOW_PROGRESS=true
- Temporary changes for debugging InitializerProcessor fixes on production
This commit is contained in:
2025-08-11 20:13:26 +02:00
parent 59fd3dd3b1
commit 55a330b223
3683 changed files with 2956207 additions and 16948 deletions

View File

@@ -1,18 +1,45 @@
<?php
declare(strict_types=1);
namespace App\Framework\Cache;
use App\Framework\Core\ValueObjects\Duration;
interface Cache
{
public function get(string $key): CacheItem;
public function set(string $key, mixed $value, ?int $ttl = null): bool;
public function has(string $key): bool;
public function forget(string $key): bool;
/**
* Get cache items for one or more identifiers (keys, tags, prefixes)
* Returns CacheResult with all matching items (hits and misses)
*/
public function get(CacheIdentifier ...$identifiers): CacheResult;
/**
* Set one or more cache items
* Each CacheItem can have its own TTL
*/
public function set(CacheItem ...$items): bool;
/**
* Check if one or more identifiers exist in cache
* @return array<string, bool> Identifier string => exists
*/
public function has(CacheIdentifier ...$identifiers): array;
/**
* Remove cache items by identifiers (keys, tags, prefixes)
* Supports batch operations and different identifier types
*/
public function forget(CacheIdentifier ...$identifiers): bool;
/**
* Clear all cache items
*/
public function clear(): bool;
/**
* Führt Callback aus, wenn Wert nicht im Cache ist ("Remember"-Pattern)
* und cached das Ergebnis für die gewünschte Zeit
*/
public function remember(string $key, callable $callback, int $ttl = 3600): CacheItem;
public function remember(CacheKey $key, callable $callback, ?Duration $ttl = null): CacheItem;
}