Skip to content
Snippets Groups Projects
Commit 52462beb authored by Robert Latta's avatar Robert Latta
Browse files

added exists() fmethod to MockedRedis

parent ed62d254
Branches
Tags
No related merge requests found
......@@ -132,6 +132,9 @@ class MockedRedis(object):
return None
return value.encode('utf-8')
def exists(self, name):
return name in MockedRedis.db
def delete(self, key):
if isinstance(key, bytes):
key = key.decode('utf-8')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment