What's the best way to store an hash in Redis which looks like this:
id1->{key1->value1, key2->value2, key3->value3….} , id3->{key1->value1, key2->value2, key3->value3….} ….
where key1, key2, key3
... is two-letters code of language (en, es, etc), but some of they keys can have different set of languages, and a key can have about 30 different languages.
This fits just right in Redis HASH, you can use HMSET to add all fields to each hash:
You might want to SADD all HASHs key names into a SET to be able to get all of their names: