1.实际项目中都有哪些数据存入redis中
2.多个开发人发自己存自己的数据,是怎样规范存储和整理的
3.redis中的数据用作缓存还是硬存储
4.redis上手容易不,是不是使用一个工具类就可以了。
阿神2017-04-18 10:57:21
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
way
Is 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
PHPz2017-04-18 10:57:21
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