Public » MiniRedis Read More
Clone URL:  
Pushed to one repository · View In Graph Contained in tip

add back explicit incr command support

Changeset d7273e41f3cb

Parent ebffd254a0e8

by Profile picture of Benjamin PollackBenjamin Pollack

Changes to one file · Browse files at d7273e41f3cb Showing diff from parent ebffd254a0e8 Diff from another changeset...

Change 1 of 1 Show Entire File miniredis.py Stacked
 
106
107
108
 
 
 
109
110
111
 
106
107
108
109
110
111
112
113
114
@@ -106,6 +106,9 @@
  self.log(client, 'KEYS %s' % pattern)   return ' '.join(k for k in client.table.keys() if r.search(k))   + def handle_incr(self, client, key): + return self.handle_incrby(client, key, 1) +   def handle_incrby(self, client, key, by):   try:   client.table[key] = int(client.table[key])