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

support DECR, DECRBY

Changeset 40e2d59846ff

Parent ef5fdff2ad40

by Profile picture of Benjamin PollackBenjamin Pollack

Changes to one file · Browse files at 40e2d59846ff Showing diff from parent ef5fdff2ad40 Diff from another changeset...

Change 1 of 1 Show Entire File miniredis.py Stacked
 
198
199
200
 
 
 
 
 
 
201
202
203
 
198
199
200
201
202
203
204
205
206
207
208
209
@@ -198,6 +198,12 @@
  self.log(client, 'BGSAVE')   return RedisMessage('Background saving started')   + def handle_decr(self, client, key): + return self.handle_decrby(self, client, key, 1) + + def handle_decrby(self, client, key, by): + return self.handle_incrby(self, client, key, -by) +   def handle_del(self, client, key):   self.log(client, 'DEL %s' % key)   if key not in client.table: