Explorar el Código

fix: missing typename in cache

Yeuoly hace 10 meses
padre
commit
3e4fe6d4ac
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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