Do not store empty dict when using Region.get_or_create_multi with shoud_cache_fn

Declined
#58 · Created  · Last updated

Declined pull request

Dear contributor - This pull request is being moved to Gerrit, at https://gerrit.sqlalchemy.org/181, where it may be tested and reviewed more closely. As such, the pull request itself is being marked "closed" or "declined", however your contribution is merely being moved to our central review system. Please register at https://gerrit.sqlalchemy.org#/register/ to send and receive comments regarding this item.

Closed by: ·2016-09-07

Description

If Region.get_or_create_multi is used with a should_cache function and no value of the current set should be cached, do not try to store the empty dict in the backend. Some backends (e.g. the Redis backend) would fail in that case, because the dictionary is directly passend on.

0 attachments

0 comments

Loading commits...