feat(barcode): Baseline for barcode caching

This commit is contained in:
2024-12-12 17:44:41 +01:00
parent 1c0a9860fa
commit 850fa0a760
5 changed files with 24 additions and 1 deletions

View File

@@ -10,6 +10,7 @@ import (
"github.com/boombuler/barcode/code128"
"github.com/boombuler/barcode/ean"
"github.com/boombuler/barcode/qr"
"github.com/redis/go-redis/v9"
)
type BarcodeService interface {
@@ -18,6 +19,7 @@ type BarcodeService interface {
}
type DefaultBarcodeService struct {
RedisClient *redis.Client
}
func (b *DefaultBarcodeService) GenerateBarcode(format string, content string, width int, height int) (bytes.Buffer, error) {