Skip to content

Instantly share code, notes, and snippets.

@blasterpal
Created March 13, 2013 15:07
Show Gist options
  • Select an option

  • Save blasterpal/5153010 to your computer and use it in GitHub Desktop.

Select an option

Save blasterpal/5153010 to your computer and use it in GitHub Desktop.
clear out some Redis keys/lists
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