Lookup data (e.g. the clublog XML definitions) can be stored in Redis for better concurrent access amongst several applications on the server. The data is stored in the JSON format in Redis. On access, the data is retrieved and converted back from JSON into a native Python object.
This works actually well, as long as the serialized data does not contain an apostrophe (inverted comma) or a quotation mark. I found recently this problem while going through the logs of DXHeat. The country name Cote d'Ivoire (Ivery Coast) (ADIF ID 428) caused pyhamtools to through an execption whenever the corresponding country information was read from redis.
Lookup data (e.g. the clublog XML definitions) can be stored in Redis for better concurrent access amongst several applications on the server. The data is stored in the JSON format in Redis. On access, the data is retrieved and converted back from JSON into a native Python object.
This works actually well, as long as the serialized data does not contain an apostrophe (inverted comma) or a quotation mark. I found recently this problem while going through the logs of DXHeat. The country name Cote d'Ivoire (Ivery Coast) (ADIF ID 428) caused pyhamtools to through an execption whenever the corresponding country information was read from redis.