Reputation: 101
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.
Upvotes: 1
Views: 241
Reputation: 86
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.
Upvotes: 2