Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 64f9850cb8
Fetching contributors…

Cannot retrieve contributors at this time

executable file 13 lines (10 sloc) 0.299 kb
#!/usr/bin/env bash
#Small script to flush Memcached
memcachehost="localhost"
memcacheport="11211"
if pgrep memcached &> /dev/null; then
nc -w 3 $memcachehost $memcacheport <<< flush_all
printf '%s\n' 'Memcached cache was flushed! :)'
else
printf '%s\n' 'Memcached is not running!'
fi
Jump to Line
Something went wrong with that request. Please try again.