Last active
August 9, 2021 13:03
-
-
Save vbogretsov/3049cb0d42f454e7847d31ced080602d to your computer and use it in GitHub Desktop.
Get maxmemory configured on redis host
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
| 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