NDHN
Denoβ€’3y agoβ€’
12 replies
NDH

Kv encodes integer as double

Anyone know why Deno.kv encodes an integer in a mutli-part key as a double?
const key = ["int", 3]
encodes to: [2,105,110,116,0,33,192,8,0,0,0,0,0,0]

the - 33, 192, 8 above represents a Double
(code 33 = Double) with value 3

It should encode to:
[2,105,110,116,0,21,3]

21, 3 represents (code 21 = integer) 3
Was this page helpful?