We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae56708 commit e54f731Copy full SHA for e54f731
mockredis/pipeline.py
@@ -39,6 +39,8 @@ def watch(self, *keys):
39
raise RedisError("Cannot issue a WATCH after a MULTI")
40
self.watching = True
41
for key in keys:
42
+ if key in self._watched_keys:
43
+ continue
44
self._watched_keys[key] = deepcopy(self.mock_redis.redis.get(self.mock_redis._encode(key))) # noqa
45
46
def multi(self):
0 commit comments