From resourses in Internet, the usage of php memcache is like that.
$memcache= new Memcache;
$memcache->connect('127.0.0.1', 11211);
But I think of one query.
What if we put the first argument with host other than localhost?
Does it mean, when I know one’s server IP, then I can access its memcache using this function?
It may be because I misunderstand memcache.
Hope someone can understand my query!
Memcached is a daemon that listens particular port (11211 by default) and any number of clients may connect it from any machine (according to firewall rules, if any)
So, yes, if you install memcached to another server you may connect it remotely.
Yes, if there is no any sort of firewalls on the target server and if memcached is set up to listen outer network interface – you could do that.