当前位置:网站首页>Redis Basics
Redis Basics
2022-06-26 18:27:00 【[email protected]】
Day01~Redis Introduction to technology
Core knowledge points
Redis Technical introduction ( What is it? , Birth background , edition , Basic framework )
Redis Basic operation of service ( Sign in redis, Basic instructions , sign out redis)
Redis Data types commonly used in (string,hash,list,set)
Redis The database corresponds to Java client API application (jedis,RedisTemplate)
FAQ analysis
Redis What is it? ?( Distributed Key/Value Structure cache database , Non relational data ,NoSql database )
Redis The background of database birth ?( The access pressure of relational database is relatively large , Local memory does not support multi service instance sharing )
Redis The basic architecture of the database ?(C/S,redis-cli,redis-server)
You know Redis What are the basic instructions ?(redis-cli,redis-server,exit,clear,type,expire,shutdown,help,?,keys,flushall,flushdb)
What are the characteristics of string types ?( All values are strings , Dynamic space allocation , The increment of integer value can be realized , Decline , Implement logging )
Operation string type (string) Common instructions for ?(set,get,strlen,append,mset,mget,incr,incrby,decr,decrby)
Hash type (hash) What are the characteristics of data ?( Is that the value can also be used key/value Structure storage ,key disorder ,key Same value override , Storing objects is convenient )
Operation hash type (hash) Common instructions for ?(hset,hget,hgetall,hexits,hdel,hkeys,hvals,hincrby,hmget)
List the type (list) What are the characteristics of data ?( Linked list , The order of the added elements will be recorded , Element allows repetition , Can achieve FIFO,FILO These features )
Action list type (list) Common instructions of type ?(lpush,rpop,rpush,lpop,lrem,lindex,ltrim,lset,linsert,lrange,rpoplpush)
Set Properties of type data ?( hash , Do not record the order in which elements are added , Elements are not allowed to repeat )
operation set Common instructions of type ?(sadd,smembers,spop,smove,scard,sunion)
Redis Application scenarios of various data types in ?
You know, Redis The database corresponds to Java What are the clients ?(Jedis,RedisTemplate)
Redis Which configuration file does the database correspond to ?(redis.conf)
common Bug analysis
redis Service failed to start ?( Look at the container log )
Java Middle link Redis Failure ?( Check ip Address , port , A firewall , To configure )
Unit testing ,RedisTemplate Object null pointer ?( Check @Test Whether the introduction is correct )
Class practice
Build a singleton of JedisPool object , Based on this object, get and redis The connection of .
Day02~ be based on RedisTemplate The object operation redis cache .
Core knowledge points
RedisTemplate Basic application of object ( a key )
StringRedisTemplate Basic application of object ( Default string serialization )
RedisTemplate Highly customized implementation of object ( difficulty )
FAQ analysis
RedisTemplate What is the default serialization method of objects ?(JDK The way )
RedisTemplate When an object is serialized according to the default rules , Does our object need to implement a serialization interface ?
StringRedisTemplate Object and the RedisTemplate What is the most essential difference between objects ?( Serialization mode )
RedisTemplate Object is based on the default json Will the object type be stored when serialization ?
How to modify RedisTemplate Serialization of objects ?( adopt setXxx And so on )
Do you have your own business definition in the project RedisTemplate What about objects? ?( Yes , Modify serialization rules )
common Bug analysis
be based on RedisTemplate Object's incrment Method realization key When the value is incremented , Note the structure type of the value ?
Object serialization and deserialization exceptions ?( Be sure to pay attention to serialization rules )
Day03~Java in redis Advanced operation practice
Core knowledge points
be based on redis Realize single sign on system ?( stay redis Record user status )
be based on redis A voting system that implements an activity ?
The project is based on AOP Way to apply redis database ?( If you need more flexibility , Recommend yourself )
FAQ analysis
be based on redis When storing user status , What type of data do you use ?(hash type )
adopt redis Store login status , What do you think are the disadvantages ?( To check the login status of users, you need to query redis)
be based on redis A voting system that implements an activity , What type of data do you use ?(Set type )
How to use... In our business objects redis?( Inject RedisTemplate Or its subclass ,AOP The way )
Spring What do you know about the pointcut annotations used to describe the application cache in the project ?(@Cacheable,@CachePut,…)
Spring If the project needs to be based on AOP Do I need to add any comments to the configuration of the integrated cache application ?(@EnableCaching)
Spring In Engineering CacheManager What is the role ?( Manage cache , Define cache configuration and implementation , You can also customize it )
common Bug analysis
Dependency injection exception ?( How to implement object injection when an interface has multiple implementations )
start-up AOP Cache implementation of , The class is not added to the startup class or configuration class @EnableCaching annotation
Day04~Redis Persistence , Transactional and architectural practices
Redis Persistence
Redis Business management
Redis Master slave architecture , Sentinel and cluster architecture practices
Why persistence ?( Better guarantee the reliability of data , Prevent data loss due to power failure )
Redis What are the ways of persistence in ?(RDB,AOF)
You know Redis Which persistence configurations in ?
How to understand Redis in AOF Mode persistence built-in rewriting mechanism ?
say something Redis in Rdb and Aof The advantages and disadvantages of persistent data ?
How to apply in production environment Rdb and Aof Persistence of ?( Both should be configured )
Redis Master slave architecture , sentry , A background for the birth of cluster architecture ?
pure Redis What is the problem with the master-slave architecture ?( Host point downtime , The entire master-slave system no longer supports write operations )
Redis sentry (sentinel) What is it for ?( Monitor the working status of master and slave nodes , The primary node is down , Automatically select the master node )
What are the main problems to be solved by the cluster architecture ?( A single primary node cannot support more concurrent write operations )
common Bug analysis
redis Configuration file configuration error caused redis Service failed to start ?(vim Unfamiliar instructions )
Attention should be paid to in the process of architecture practice ip Address ( The core issue ).
版权声明
本文为[[email protected]@yxg]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/177/202206261820088165.html
边栏推荐
猜你喜欢
随机推荐
SQL中的并、交、差运算
最小生成树、最短路径、拓扑排序、关键路径
gdb安装
微信小程序 uniapp 左滑 删除 带删除icon
知識點總結
IDEA收藏代码、快速打开favorites收藏窗口
Class inheritance of 25class
元宇宙链游开发案例版 NFT元宇宙链游系统开发技术分析
项目实战六:分布式事务-Seata
The cross compilation environment appears So link file not found problem
博云,站在中国容器潮头
To: Apple CEO Cook: great ideas come from constantly rejecting the status quo
To: seek truth from facts
项目实战五:搭建ELk日志收集系统
微服务版单点登陆系统(SSO)
行锁分析和死锁
ROS查询话题具体内容常用指令
微服务架构
Deep understanding of MySQL lock and transaction isolation level
Reading notes: process consulting III








