Home > Database > Redis > body text

What are the practical applications of redis?

(*-*)浩
Release: 2019-11-21 14:47:25
Original
3489 people have browsed it

Redis is an in-memory cache database. The full name of Redis is: Remote Dictionary Server (remote data service), written in C language. Redis is a key-value storage system (key-value storage system) that supports rich data types, such as: String, list, set, zset, hash .

What are the practical applications of redis?

Many languages ​​​​support Redis, because Redis exchanges data quickly, and is often used in servers to store some data that needs to be retrieved frequently, saving memory overhead, and is also very Greatly improved speed. (Recommended learning: Redis video tutorial)

Store some hot data in Redis. When needed, access it directly from the memory, which greatly improves speed and savings. server overhead.

1. Session cache (most commonly used)

2. Message queue (payment)

3. Activity ranking or count

4 , Publish, subscribe to messages (message notifications)

5. Product list, comment list

Redis features

Redis uses memory as the data storage medium. Reading and writing data are extremely efficient.

The difference between Redis and memcache is that the data stored in Redis is persistent, and the data will not be lost if the power is cut off or restarted.

Redis storage is divided into memory storage, disk storage and log files.

Redis can reload data from disk into memory, or configure it through configuration files, so redis can achieve persistence.

Redis supports master-slave mode and can configure clusters, which is more conducive to supporting large-scale projects.

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template