1. Supported data types: memcached only supports key-value types, redis also supports list, set, hash, that is, redis supports more abundant data types
2. Storage data security: After memcached hangs up, the data cannot be recovered. Redis supports data persistence. The data in the memory can be saved to the disk and can be loaded again for use during restart.
Main difference: redis supports persistence
The framework of php:
1. Laravel, Laravel is a free and Open source PHP application framework.
2. Phalcon, Phalcon is the fastest running PHP framework.
3. Symfony, Symfony is a PHP framework prepared for Web projects.
4. Yii, Yii is a fast, safe and professional PHP framework.
5. CodeIgniter, CodeIgniter is a very agile open source PHP framework.
6. CakePHP, CakePHP is an old PHP framework. 7.Kohana, Kohana is an agile but powerful PHP framework.
The above is the detailed content of What is the difference between redis and memcached in PHP. For more information, please follow other related articles on the PHP Chinese website!