feat(gallery): preload images
release.yaml / publish (push) Successful in 3m4s

This commit is contained in:
schreifuchs committed 2026-09-10 14:02:05 +02:00
1 parent c678c7aa45
commit 72bc974aa6
3 files changed
+24 -1

No files matched your search

+5
View File
@@ -11,6 +11,7 @@ import (
"strings"
"time"
"git.schreifuchs.ch/schreifuchs/schreifuchs.ch/internal/components/images"
"github.com/valkey-io/valkey-go"
)
@@ -22,6 +23,10 @@ type Image struct {
Height int
}
func (i Image) URL() string {
return images.URLFromUID(i.UID)
}
const (
imagesKey = "gallery:images:list"
hashKey = "gallery:images:hash"