How to set the two different memcache for two different PHP application in One server(windows and linux)
I know how to set for single application.But i am not able to configure for two different PHP application. So please guide me anyone who is good in memcached.
You can use different ports, for example:
$memcache = new Memcache;
$memcache->connect('memcache_host', 11211);
$memcache = new Memcache;
$memcache->connect('memcache_host', 11212);
And run memcached using different ports, like this (for linux):
memcached -p 11211 -d
memcached -p 11212 -d
Hope it helps.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.