Created
March 13, 2013 15:07
-
-
Save blasterpal/5153010 to your computer and use it in GitHub Desktop.
clear out some Redis keys/lists
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'redis' | |
| # cleanup is a breeze! | |
| redis = Redis.new(:host => "localhost", :port => 6379) | |
| resque_junk = redis.keys 'resque*' | |
| resque_junk.each {|ea| redis.del ea} | |
| # If the del times out you might have to use redis-cli. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment