Created
March 26, 2016 01:53
-
-
Save rjmurillo/d8ea44b0b58176677839 to your computer and use it in GitHub Desktop.
LUA script to expire multiple keys in Redis by pattern
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
EVAL "for i, name in ipairs(redis.call('KEYS', 'user:*')) do redis.call('expire', name, 0); end" 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment