Sfoglia il codice sorgente

fix: missing typename in cache

Yeuoly 10 mesi fa
parent
commit
3e4fe6d4ac
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      internal/db/cache.go

+ 1 - 1
internal/db/cache.go

@@ -24,7 +24,7 @@ type GetCachePayload[T any] struct {
 }
 
 func joinCacheKey(typename string, pairs []KeyValuePair) string {
-	cache_key := CACHE_PREFIX
+	cache_key := CACHE_PREFIX + ":" + typename
 	for _, kv := range pairs {
 		cache_key += ":" + kv.Key + ":"
 		// convert value to string