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
What is the importance of php?
"mysql_fetch_row — Get a result row as an enumerated array",this sentence comes from the PHP offical manual.However ,i can not understand the words "enumerated array".I need some help.Thanks a lot to everyone that reply.
Write down the benefits of php7?
Suppose we receive a form submitted by a post to subscribe to a newsletter. This form has only one field, an input text field named email. How would we validate whether the field is empty? Print a message "the email cannot be empty" in this case?
Explain what does the unset() function means?
What is the sign to start variables in PHP?
Explain the difference between require() and require_once()?
How to receive a cookie from the browser?
How is csrf token generated?
Why is node js better than php?
What types of MYSQL function available for affecting columns
What is the use session in php?
What are the functions to be used to get the image's properties (size, width and height)?
Is php still in demand?
Which array function checks if the particular key exists in the array?