1. Overview
(1) Redis is the abbreviation of Remote Dictionary Server (remote data service).
A memory cache database developed by Italian antirez (Salvatore Sanfilippo)
(2) The software is written in C language, and its data model is key-value
(3) It supports many stored value types, including string (string), hash (hash), list (linked list), set (set), Zset (ordered set).
(4) In order to ensure efficiency, data is cached in memory. It can also periodically write updated data to disk or write modification operations to appended record files.
Recommended: "Redis Video Tutorial"
2. Features
1) High-speed reading of data (in-memory )
2) Reduce the burden on the database
3) Has set calculation function (better than ordinary databases and similar products)
4) Supports multiple data structures
3. Suitable occasions and their advantages
1) [Sort Set] ranking application, take top n operations, such as sina Weibo hot topics
2 )[List] Get the latest N data or the latest data of a certain category
3) Counter application
4)[Set]sns(social network site)Get common friends
5)[Set] Anti-attack system (ip judgment), etc.
The above is the detailed content of What is redis server. For more information, please follow other related articles on the PHP Chinese website!