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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / karthi

It acts as a support module for mod_cache and provides a
memory based storage manager. mod_mem_cache can be
configured to operate in two modes: caching open file
descriptors or caching objects in heap storage.

mod_mem_cache is most useful when used to cache locally
generated content or to cache backend server content for
mod_proxy

Is This Answer Correct ?    2 Yes 0 No

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

Answer / abinash grahacharya

mod_mem_cache is most useful when used to cache locally
generated content or to cache backend server content for
mod_proxy configured for ProxyPass

Is This Answer Correct ?    1 Yes 0 No

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

Answer / abhilash

It acts as a support module for mod_cache and provides a
memory based storage manager. mod_mem_cache can be
configured to operate in two modes: caching open file
descriptors or caching objects in heap storage.
mod_mem_cache is most useful when used to cache locally
generated content or to cache backend server content for
mod_proxy

Is This Answer Correct ?    0 Yes 1 No

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

Answer / sagar_joshi

Memcache module provides handy procedural and object
oriented interface to memcached, highly effective caching
daemon, which was especially designed to decrease database
load in dynamic web applications.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More PHP Interview Questions

Why sessions are used in php?

0 Answers  


What is if isset ($_ post submit )) in php?

0 Answers  


What are the correct and the most two common way to start and finish a PHP block of code?

0 Answers  


Could we start a variable with number like $4name?

0 Answers  


how to select the multiple data in selection button

1 Answers   xasis technologies,


What is pdo in php why use?

0 Answers  


What will the ?getdate() function returns in PHP?

0 Answers  


What is happening in the following code $objA = new A(); // A is a class $objB = $objA;

3 Answers   NIIT,


Can you give example for trait in php?

0 Answers  


Why these language is needed?

3 Answers  


What is csrf cookie?

0 Answers  


What is sorting php?

0 Answers  


Categories