feat: add CachedQRCodeProvider

This commit is contained in:
2024-01-18 15:21:41 +01:00
parent 574dba85ad
commit 9bd3b5efff
8 changed files with 73 additions and 6 deletions

View File

@@ -0,0 +1,12 @@
<?php
declare(strict_types=1);
namespace App\Service;
use App\Entity\QRCode\QRCode;
interface CacheableQRCodeGeneratorInterface extends QRCodeGeneratorInterface
{
// We can't calculate cache key directly from QRCode
public function getCacheKey(QRCode $entity): string;
}