Last active
December 18, 2015 02:39
-
-
Save lloydmeta/5712607 to your computer and use it in GitHub Desktop.
Clear out nonce set that has, regrettably gotten out of hand thanks to race condition on setting expiry.
This file contains 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
def cleanout_nonce(key) | |
loop do | |
print "." | |
break unless $redis.spop key | |
end | |
end | |
cleanout_nonce("nonce_set") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment