Skip to content

Commit

Permalink
RedisService | method to get keys for a given pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Mar 12, 2021
1 parent 3941f81 commit fa16a47
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/common/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,5 +216,8 @@ def exists(self, key):
def get(self, key):
return self.conn.get(key)

def keys(self, pattern):
return self.conn.keys(pattern)

def get_int(self, key):
return int(self.conn.get(key).decode('utf-8'))

0 comments on commit fa16a47

Please sign in to comment.