#Redis is open source and free, written in C language, following the BSD protocol. It is a high-performance (KEY/value) distributed memory database that runs based on memory and supports persistence. The NoSQL database is one of the most popular NoSQL databases currently and is also known as the data structure server.
What is Redis used for? What can be done?
1. Memory storage and persistence:
Redis supports asynchronously writing the data in the memory to the hard disk without affecting the continued service and the operation of fetching the latest N data. , for example: you can put the IDs of the latest 10 comments in the Redis list collection.
2. Simulate functions similar to HttpSession that require setting the expiration time.
3. Publish and subscribe message system.
4. Timer, calculator.
The above is the detailed content of What is redis used for?. For more information, please follow other related articles on the PHP Chinese website!