delano / redis-dump

Redis to JSON and nack again
https://rubygems.org/gems/redis-dump
MIT License
825 stars 124 forks source link

added feature for importing specific keys #4

Closed leifg closed 12 years ago

leifg commented 12 years ago

for my application I need to export specific keys, not the whole database.

I could do a redis-dump | grep "" > backup.json but that is very inefficent when the database size is a lot greater than the keys

so I added this functionality to the code (I had to adjust the core because I'd like to get the keys by a pattern)

delano commented 12 years ago

I couldn't pull in this patch because it includes changes to the release files. However, I just pushed the 0.3 release to rubygems which includes a -f option to specify a key filter.