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

What is singleton class in php?

947


Explain how we can get the number of elements in an array?

981


How is the ternary conditional operator used in php?

962


How do sessions work in php?

953


Will php die?

907


What are the steps involved to run php?

1018


What kind of variable is age?

1068


How do I escape data before storing it in the database?

950


What is php and why we use it?

947


Do you know what is the difference between the include() and require() functions?

938


What are the method available in form submitting?

946


What is the actually used php version?

1030


Tell me how do you execute a php script from the command line?

965


Tell me how to retrieve a cookie value?

967


What is the use of mysqli_real_escape_string() function?

876