Last active
          August 29, 2015 14:03 
        
      - 
      
- 
        Save ondrej-kvasnovsky/c89bb4890482b045addf to your computer and use it in GitHub Desktop. 
    Memcached
  
        
  
    
      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
    
  
  
    
  | # get setting | |
| echo "stats settings" | nc localhost 11211 | |
| # get current memory usage | |
| echo "stats" | nc -w 1 localhost 11211 | awk '$2 == "bytes" { print $2" "$3 }' | |
| # start in verbose mode | |
| /usr/local/bin/memcached -vv | |
| # start with higher memory | |
| /usr/local/bin/memcached -m 2048 | |
| # flush all | |
| echo 'flush_all' | nc localhost 11211 | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment