Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is mem_cache ? How do you put a database query into that ?

Answer Posted / salil

1. "memcached" is a high-performance, distributed memory
object caching system

2. "memcache" is a php module, which provides procedural and
object oriented interface to memcached server.

3. PHP Usage: ($Value can be the mysql result data array)

$CacheInstance = new Memcache;
$CacheInstance->addServer($Host,$Port);

// STORE
$CacheInstance->set($Key,$Value,MEMCACHE_COMPRESSED,$TTL);
// FETCH
$CacheInstance->get($Key);
// DELETE
$CacheInstance->delete($Key);

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many open modes available when a file open in PHP?

1155


Why do we use javascript in php?

964


what are interfaces and Abstart classes

1995


Why is php used?

1004


Is php a framework?

948


Why do we use hooks?

901


How to close a session properly?

972


What is the current stable version of php?

1026


What is php data type?

959


What is the use of get and post method in php?

1001


Is php faster than python?

1024


What is $row in php?

934


A process is identified by a unique___

1052


How to check a variable is array or not in php?

994


Explain how can we increase the execution time of a php script?

985