Join GitHub today
about the region get_multi / get_or_create_multi return type #35
Migrated issue, originally created by lxyu (lxyu)
Currently the get multi apis returns list, while I think the dict is a better choice.
Take this code for example:
If return list, I have to make sure all order_ids exist, also must I sort the result based on the keys. If any key misses or the order of result mixed, it can lead to incorrect cache, which is severe error.
If return dict, it'll be much simpler:
So if the return type is dict, it can be more fault tolerant without lose in function.
Michael Bayer (zzzeek) wrote:
are we talking about the