Explorar o código

refactor: switch Redis cache from JSON to CBOR encoding

Yeuoly hai 5 meses
pai
achega
6d63795993
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      internal/utils/cache/redis.go

+ 1 - 1
internal/utils/cache/redis.go

@@ -100,7 +100,7 @@ func Get[T any](key string, context ...redis.Cmdable) (*T, error) {
 		return nil, ErrNotFound
 	}
 
-	result, err := parser.UnmarshalJson[T](val)
+	result, err := parser.UnmarshalCBOR[T]([]byte(val))
 	return &result, err
 }