Which hero can give little brother system to explain the principle and application of PHP caching technology Ah, thank you!
Reply content:
Which hero can give little brother system to explain the principle and application of PHP caching technology Ah, thank you!
- Static file Caching
- Extensions for example
apc ,eAccelerator
memcachesuch as
File cache, cache database write to file
Memory cache, APC, eaccelerator (PHP extension implementation), Memcached, Redis, etc.
Database cache, cache data written to database
PHP does the data cache with memcached and Redis. The principle is to build a memcached or Redis server, and then install the PHP memcached/redis extension, In the PHP code, the API provided by the Extender can be connected to the Memcached/redis server for data access on the Memcached/redis. It's the same with PHP installing MySQL extension to connect to MySQL database.