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

add PING command

Changeset f1a16babefa1

Parent 5b9ca44b7472

by Profile picture of Benjamin PollackBenjamin Pollack

Changes to one file · Browse files at f1a16babefa1 Showing diff from parent 5b9ca44b7472 Diff from another changeset...

Change 1 of 1 Show Entire File miniredis.py Stacked
 
293
294
295
 
 
 
 
296
297
298
 
293
294
295
296
297
298
299
300
301
302
@@ -293,6 +293,10 @@
  self.log(client, 'LRANGE %s %s %s -> %s' % (key, low, high, l))   return l   + def handle_ping(self, client): + self.log(client, 'PING -> PONG') + return RedisMessage('PONG') +   def handle_rpop(self, client, key):   if key not in client.table:   return EMPTY_SCALAR