diff options
author | 2020-05-23 14:41:16 +0200 | |
---|---|---|
committer | 2020-05-23 14:42:19 +0200 | |
commit | 2fb86258471626863c2214cabc2529e78c77729a (patch) | |
tree | f6243d4a07474a4b2d6ea30d8ecae01d67fb09c7 /tests/helpers.py | |
parent | Fix typo in test_to_dict docstring (diff) |
Don't rely on HDEL ignoring keys for .pop
Previously we would try to .delete keys that did not exist if a default
was provided when calling .pop. This is okay to do (because HDEL will
just ignore any attempts to delete non-existing calls), but it does add
an additional pointless API call to Redis, so I've added some validation
as a small optimization.
This also adds a few additional lines of documentation as requested by
@SebastiaanZ in their review.
Diffstat (limited to 'tests/helpers.py')
0 files changed, 0 insertions, 0 deletions