当前位置:网站首页>2110 summary of knowledge points and common problems in redis class
2110 summary of knowledge points and common problems in redis class
2022-07-06 20:31:00 【Yutian said code】
List of articles
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,…)
FAQ analysis
- Redis What is it? ?( Distributed Key/Value Structure of the memory 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,del)
- 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,lpos)
- 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 ?
common Bug analysis
- redis Service failed to start ?( Look at the container log )
- redis Instruction application error ?( Practice with reference to grammar )
Homework after class
- Summarize the knowledge points in class
- complete Redis Common data type operations
- preview redis Corresponding Java client api practice
Day02~Jedis And RedisTemplate Application practice
Core knowledge points
- redis client API brief introduction
- Engineering structure analysis and project creation
- Jedis And JedisPool Basic application practice
- RedisTemplate Object application practice analysis
FAQ analysis
- Jedis Commonly used API What are they? ?(Jedis,JedisPool,JedisPoolConfig)
- Jedis How to store POJO Object to redis?( Convert the object to json strand , Put the object in Hash Form for storage )
- Gson What is it? ?(Google The company's exit is used for operation JSON A set of formatted data API)
- JedisPool What is it? ?( One Jedis Connect pool objects , All pool objects have a meta design )
- We are applying JedisPool When connecting to the pool , How to ensure that this object is unique in memory ?( Singleton mode of double lock verification )
- RedisTemplate The role of objects ?(Spring A framework is introduced to operate Redis Of API object )
- RedisTemplate What is the default serialization method of objects ?(JDK The way , Default key and value Need to achieve Java Serialization interface in )
- RedisTemplate When an object is serialized according to the default rules , Does our object need to implement a serialization interface ?( need )
- How to modify RedisTemplate Serialization of objects ?( adopt setXxx And so on )
- RedisTemplate What design patterns are applied ?( Template method pattern )
- How do you learn RedisTemplate Object application ?( Refer to official documentation ,demo, Source code )
common Bug analysis
- Can't connect to the remote redis service ?(redis Whether the service starts , Whether the firewall is turned on ,ip And whether the account number is correct ,redis.conf Configuration problem )
- be based on RedisTemplate Object's incrment Method realization key When the value is incremented , Note the structure type of the value ?(Long)
- Object serialization and deserialization exceptions ?( Be sure to pay attention to serialization rules )
Homework after class
- Summarize the knowledge points in class
- Completion is based on Jedis Object implementation data application practice ?
- complete CSDN In document SSO System , Design and implementation of simple voting system .
- Preview and try to complete RedisTemplate Custom application of object ( Combined with practice )
Day03~Java in redis Advanced operation practice
Core knowledge points
- StringRedisTemplate Object characteristics and Applications ?
- Based on business implementation RedisTemplate Object customization ?
- 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 ?
FAQ analysis
- StringRedisTemplate What are the characteristics of the object ?
- Why to customize RedisTemplate object ?( Business needs )
- 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 )
- SpringBoot In Engineering Lettuce How to configure the connection pool ?
common Bug analysis
- Dependency injection exception ?( Check whether the object is handed over to Spring management , How to implement object injection when an interface has multiple implementations )
- Object serialization storage exception ?
Homework after class
- Summarize the classroom knowledge points
- Finish class RedisTemplate The custom of .
- Read ruoyi system RedisTemplate Customization of objects
- preview 03-Redis client API In application AOP The way redis Application .
边栏推荐
- 解剖生理学复习题·VIII血液系统
- OLED屏幕的使用
- Node. Js: express + MySQL realizes registration, login and identity authentication
- Deep learning classification network -- zfnet
- 【每周一坑】计算100以内质数之和 +【解答】输出三角形
- Groovy基础语法整理
- Oceanbase Community Edition OBD mode deployment mode stand-alone installation
- 报错分析~csdn反弹shell报错
- In unity space, an object moves around a fixed point on the sphere at a fixed speed
- BUUCTF---Reverse---easyre
猜你喜欢
![[network planning] Chapter 3 data link layer (4) LAN, Ethernet, WLAN, VLAN](/img/b8/3d48e185bb6eafcdd49889f0a90657.png)
[network planning] Chapter 3 data link layer (4) LAN, Ethernet, WLAN, VLAN

【计网】第三章 数据链路层(4)局域网、以太网、无线局域网、VLAN

OLED屏幕的使用

02 basic introduction - data package expansion

02 基础入门-数据包拓展

Comment faire une radio personnalisée

使用.Net驱动Jetson Nano的OLED显示屏
![[diy] self designed Microsoft makecode arcade, official open source software and hardware](/img/a3/999c1d38491870c46f380c824ee8e7.png)
[diy] self designed Microsoft makecode arcade, official open source software and hardware

Rhcsa Road

【每周一坑】输出三角形
随机推荐
数字三角形模型 AcWing 1018. 最低通行费
Anaconda安装后Jupyter launch 没反应&网页打开运行没执行
Leetcode question 448 Find all missing numbers in the array
Tencent T4 architect, Android interview Foundation
[diy] how to make a personalized radio
Rhcsa Road
Unity makes AB package
Notes on beagleboneblack
Leetcode question 283 Move zero
【DSP】【第二篇】了解C6678和创建工程
【计网】第三章 数据链路层(3)信道划分介质访问控制
【每周一坑】信息加密 +【解答】正整数分解质因数
Trends of "software" in robotics Engineering
Redisson bug analysis
Database - how to get familiar with hundreds of tables of the project -navicat these unique skills, have you got it? (exclusive experience)
2022 construction electrician (special type of construction work) free test questions and construction electrician (special type of construction work) certificate examination
SSO single sign on
Recyclerview GridLayout bisects the middle blank area
JVM_ Common [interview questions]
深度学习分类网络 -- ZFNet