Skip to content

Instantly share code, notes, and snippets.

@vbogretsov
Last active August 9, 2021 13:03
Show Gist options
  • Select an option

  • Save vbogretsov/3049cb0d42f454e7847d31ced080602d to your computer and use it in GitHub Desktop.

Select an option

Save vbogretsov/3049cb0d42f454e7847d31ced080602d to your computer and use it in GitHub Desktop.
Get maxmemory configured on redis host
redis-cli -p $1 -a $(grep -Po '(?<=^masterauth\s).*' ${2:-/etc/redis.conf} | sed 's/^\"//g' | sed 's/\"$//g') info | grep maxmemory_human
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment