Home  >  Article  >  PHP Framework  >  What are Yii and Redis?

What are Yii and Redis?

angryTom
angryTomOriginal
2020-03-19 11:39:562599browse

What are Yii and Redis?

What is Yii and Redis

1. What is Yii?

Yii is a high-performance component-based PHP framework for developing large-scale Web applications. Yii is written in strict OOP and has complete library references and comprehensive tutorials. From MVC, DAO/ActiveRecord, widgets, caching, hierarchical RBAC, web services, to theming, I18N and L10N, Yii provides almost everything needed for today's Web 2.0 application development. Yii is one of the most efficient PHP frameworks.

(Related tutorial recommendations: yii framework)

Yii features:

1. Fast: Yii only loads what you need function. It has strong caching support. It's explicitly designed to work efficiently with AJAX.

2. Security: Yii’s standard is safe. It includes input validation, output filtering, SQL injection and cross-site scripting prevention.

3. Professional: Yii helps you develop clean and reusable code. It follows the MVC pattern, ensuring a clear separation of logic and presentation layers.

2. What is Redis?

redis is a high-performance key-value database. It is completely open source and free. Moreover, redis is a NOSQL type database, which is designed to solve a series of problems such as high concurrency, high expansion, and big data storage. The database solution generated by the problem is a non-relational database. However, it cannot replace the relational database and can only be used as an expansion under specific circumstances.

(Recommended learning: Redis database tutorial)

Redis features:

1. Redis data reading and writing The speed is very fast because it reads all the data into the memory for operation, and redis is written in C language, which is the language closest to the operating system, so the execution speed is relatively fast.

2 . Although the data read by redis is stored in the memory, it ultimately supports the persistence of data to the disk.

3. Redis provides a rich data structure.

4. redis All operations are atomic and support transactions. The so-called atomicity means that all changes to the data are either executed or not executed.

5. Redis supports master-slave replication, and the host will automatically synchronize data to the slave Machine can separate reading and writing.

PHP Chinese website, a large number of MySQL video tutorials, welcome to learn!

The above is the detailed content of What are Yii and Redis?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn