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
How many open modes available when a file open in PHP?
Why do we use javascript in php?
what are interfaces and Abstart classes
Why is php used?
Is php a framework?
Why do we use hooks?
How to close a session properly?
What is the current stable version of php?
What is php data type?
What is the use of get and post method in php?
Is php faster than python?
What is $row in php?
A process is identified by a unique___
How to check a variable is array or not in php?
Explain how can we increase the execution time of a php script?