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

In PHP, fgets() is used to read a file one line at a time. State Whether True or False?

1174


How can a cross-site scripting attack be prevented by php?

989


What is encapsulation in php?

980


What is a definer in mysql?

975


How many records can be stored in mysql table?

1013


Explain what does the unlink() function means?

1118


What is use of preg_replace in php?

1073


What does echo mean in php?

1029


What are different types of runtime errors in php?

1080


What is php stack?

957


Which is better mysql or sql?

1010


Does php support multiple inheritances?

1002


How to delete file in php?

986


What does pear stand for?

950


Tell me is it possible to protect special characters in a query string?

910