I have a Rest API that gets the POST requests, data and images comes in two different requests.
/v1/photo # multipart/form-data
/v1/data # json
I'm trying to merge values into Redis
# Save photo
HSET photo:1.jpg file_name 9f7a6775-3815-4d20-affa-e81bc9c4293b
SADD have:uuid photo:1.jpg
HSET photo:2.jpg file_name fcb7db2d-159e-4d0e-b884-ca455bd6f4a5
SADD have:uuid photo:2.jpg
# Save data
HSET photo:1.jpg data JSONsring
SADD have:data photo:1.jpg
HSET photo:2.jpg data JSONsring
SADD have:data photo:2.jpg
Now I need to get all the combined data (In order to save them to another database).
I can use sinter
to get keys.
SINTER have:uuid have:data
But i need JSON and UUID.
How to make it as quickly and with the minimum spent resources?