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

switch KEYS to return a list like Redis 2, not a string like Redis 1

Changeset 5b9ca44b7472

Parent 40e2d59846ff

by Profile picture of Benjamin PollackBenjamin Pollack

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

Change 1 of 1 Show Entire File miniredis.py Stacked
 
248
249
250
251
 
252
253
254
 
248
249
250
 
251
252
253
254
@@ -248,7 +248,7 @@
  def handle_keys(self, client, pattern):   r = re.compile(pattern.replace('*', '.*'))   self.log(client, 'KEYS %s' % pattern) - return ' '.join(k for k in client.table.keys() if r.search(k)) + return [k for k in client.table.keys() if r.search(k)]     def handle_lastsave(self, client):   return self.lastsave