Created
January 28, 2014 17:08
-
-
Save pahud/8671819 to your computer and use it in GitHub Desktop.
redis的一些技巧
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
// DEL redis keys by pattern with redis lua support | |
redis 127.0.0.1:6379> eval "for _,k in ipairs(redis.call('keys','kr:feed:9:*')) do redis.call('del',k) end" 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment