Once you have installed memcache, go to : /etc/sysconfig/ and edit the file called memcached.
In there find the OPTIONS="" line and make it : OPTIONS="-l 127.0.0.1" (that minus L).
Then restart memcached, /etc/init.d/memcached restart
This will prevent any one from the outside from connecting to memcached from outside.