Skip to content

Instantly share code, notes, and snippets.

@pahud
Created January 28, 2014 17:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pahud/8671819 to your computer and use it in GitHub Desktop.
Save pahud/8671819 to your computer and use it in GitHub Desktop.
redis的一些技巧
// 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