Php - How to connect with memcache, How to use memcache

How to connect with memcache

How to create new memcache object?
The below code will help you to create new memcache object and use the same object for further usage.

$memcache_comm_obj = new Memcache;
$memcache_comm_obj->connect('127.0.0.1',11211) or die ("Could not connect");

You can use the above memcache object for further memcache operations.

The topic on Php - How to connect with memcache is posted by - Math

Hope you have enjoyed, Php - How to connect with memcacheThanks for your time

Tech Bluff