Home >Backend Development >PHP Problem >Where is php cache memcache used?
Mem: memory abbreviation (memory): memory cache (recommended learning: PHP programming from entry to proficiency )
The memory data will disappear when the server is powered off or restarted, that is, temporary data;
Memcache default port: 11211
Storage method: key=>>value lengh (length) time (expiration time)
Note: not only strings, videos, sounds, pictures, text, etc. can be saved;
Comparison:
Apache – consumes CPU and uses very little memory
Memcache – consumes more memory and consumes less CPU
Memcache
If memcached is installed but the extension is not installed, then PHP cannot control memcached, but there is no problem in using the command line. If the memcache extension is installed but the memcached service is not installed, then this It cannot be used. Only when the memcached service and memcache extension are installed at the same time can you use memcached in PHP to improve dynamic website performance
The above is the detailed content of Where is php cache memcache used?. For more information, please follow other related articles on the PHP Chinese website!