Skip to content

Instantly share code, notes, and snippets.

@jamisonbryant
Created October 10, 2025 19:15
Show Gist options
  • Select an option

  • Save jamisonbryant/3bae583534c84f18f366aca9ffd24a31 to your computer and use it in GitHub Desktop.

Select an option

Save jamisonbryant/3bae583534c84f18f366aca9ffd24a31 to your computer and use it in GitHub Desktop.
Display Redis Keys matching a pattern & show type
EVAL "local keys = redis.call('KEYS', ARGV[1]); local result = {}; for i, key in ipairs(keys) do result[#result+1] = key; result[#result+1] = redis.call('TYPE', key).ok end; return result" 0 "*mypattern*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment