Answer the question
In order to leave comments, you need to log in
Is it possible to store an array of bytes in Redis?
Good afternoon! Is it possible in Redis to store data as a byte array, under a key that is also a byte array?
Something like this:
const key= [...Buffer.from('my:redis:key')];
/*
[
109, 121, 58, 107, 101,
121, 58, 105, 110, 58,
98, 121, 116, 101, 115
]
*/
const value= [...Buffer.from('value')]; // [ 118, 97, 108, 117, 101 ]
redisClient.set(key, value);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question