Add lastUpdated to coverArt ids. Helps with invalidating art cache client-side.

This commit is contained in:
Deluan
2023-02-08 13:49:05 -05:00
committed by Deluan Quintão
parent a3b8682d44
commit 806713719f
6 changed files with 105 additions and 52 deletions
+3 -2
View File
@@ -20,8 +20,9 @@ type cacheKey struct {
func (k *cacheKey) Key() string {
return fmt.Sprintf(
"%s.%d",
k.artID,
"%s-%s.%d",
k.artID.Kind,
k.artID.ID,
k.lastUpdate.UnixMilli(),
)
}