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

more Redis 1.2-compatible calls

Changeset 165a5007182f

Parent 0a4221f55c4a

by Profile picture of Benjamin PollackBenjamin Pollack

Changes to one file · Browse files at 165a5007182f Showing diff from parent 0a4221f55c4a Diff from another changeset...

Change 1 of 3 Show Entire File miniredis.py Stacked
 
195
196
197
 
 
 
 
198
199
200
 
203
204
205
 
 
 
 
206
207
208
 
217
218
219
 
 
 
220
221
222
 
195
196
197
198
199
200
201
202
203
204
 
207
208
209
210
211
212
213
214
215
216
 
225
226
227
228
229
230
231
232
233
@@ -195,6 +195,10 @@
  client.rfile.read(2) # throw out newline   return self.handle_lpush(client, key, data)   + def unwrap_lrange(self, client, line): + key, low, high = line.split() + return self.handle_lrange(client, key, low, high) +   def unwrap_rpop(self, client, line):   key = line.strip()   return self.handle_rpop(client, key) @@ -203,6 +207,10 @@
  pattern = line.strip()   return self.handle_keys(client, pattern)   + def unwrap_incr(self, client, line): + key = line.strip() + return self.handle_incr(client, key) +   def unwrap_incrby(self, client, line):   key, by = line.split()   return self.handle_incrby(client, key, by) @@ -217,6 +225,9 @@
  def unwrap_quit(self, client, line):   return self.handle_quit(client)   + def unwrap_save(self, client, line): + return self.handle_save(client) +   def unwrap_shutdown(self, client, line):   return self.handle_shutdown(client)