Skip to content

Commit

Permalink
Merge pull request #93 from metabrainz/fix-key-expiry
Browse files Browse the repository at this point in the history
Fix key expiry when using sadd
  • Loading branch information
alastair authored May 31, 2022
2 parents 21cc2f9 + da1f6c7 commit cc1e265
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brainzutils/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def sadd(name, keys, expirein, encode=True, namespace=None):
keys = {_encode_val(key) for key in keys}

result = _r.sadd(prepared_name, *keys)
expire(prepared_name, expirein, namespace)
expire(name, expirein, namespace)
return result


Expand Down

0 comments on commit cc1e265

Please sign in to comment.