Use HyperLogLog for IP deduplication and statistics on unique IPs
Use redis linked list as queue
Use the string type to perform increment counting operations, add concurrent locks, etc.
Data Structure - Unordered Set. For example, in the Weibo application, each person's friends exist in a set. In this way, the operation of finding the common friends of two people also includes intersection, union, and difference sets
hash type, stores user information according to business scenarios
Other suggestions are to learn and understand redis by yourself first
What data is stored in redis in actual projects?
Hot data: data that is frequently queried and rarely modified
User information: Redis can be used for unified Session management
If multiple developers save their own data, how do they standardize the storage and organization?
The main thing is to follow a unified specification, which can be done in the
项目名
+模块名
+实体
+id
wayIs the data in redis used as cache or hard storage?
Mainly doing caching
Persistence in Redis means that Redis saves the data in the cache on the hard disk in a certain way to prevent data loss
而非数据库
Is it easy to get started with redis? Can I just use a tool class?
You can use Jedis to call in Java
Project application scenarios
Use HyperLogLog for IP deduplication and statistics on unique IPs
Use redis linked list as queue
Use the string type to perform increment counting operations, add concurrent locks, etc.
Data Structure - Unordered Set. For example, in the Weibo application, each person's friends exist in a set. In this way, the operation of finding the common friends of two people also includes intersection, union, and difference sets