当前位置:网站首页>[video of Teacher Zhao Yuqiang's speech on wot] redis high performance cache and persistence
[video of Teacher Zhao Yuqiang's speech on wot] redis high performance cache and persistence
2022-07-03 05:46:00 【Teacher zhaoyuqiang】
Watch the video first .
【 Teacher zhaoyuqiang is here WOT Video of the speech on 】Redis High performance cache and persistence

What is? Redis?
Redis It's a key-value The storage system . and Memcached similar , It supports storage value There are more types , Include string( character string )、list( Linked list )、set( aggregate )、zset(sorted set -- Ordered set ) and hash( Hash type ). And Memcached equally , To ensure efficiency , The data is cached in memory . The difference is redis Periodically, updated data is written to disk or changes are written to an appended log file , And on this basis to achieve master-slave( Master-slave ) Sync .
Redis Is a high-performance key-value database .Redis Appearance , A lot of compensation memcached This kind of key/value Insufficient storage , In some cases, it can play a very good complementary role to the relational database . It provides many ways ( Such as Java and C) client , Easy to use .
Redis Support master-slave synchronization . Data can be synchronized from the master server to any number of slaves , A slave server can be the master server associated with other slaves .
Redis And MemCached The difference between
Redis and Memcache It's all about storing data in memory , It's all memory databases . however memcache It can also be used to cache other things , For example, pictures 、 Video and so on ;
Redis It's not just about supporting simple k/v Data of type , It also provides list,set,hash Such as data structure storage ;
Virtual memory :Redis When physical memory runs out , You can use something that hasn't been used for a long time value Swap to disk ;
Expiration strategy :memcache stay set When it comes to , for example set key1 0 0 8, Never expire .Redis It can be done by, for example expire Set up , for example expire name 10;
Distributed : Set up memcache colony , utilize magent Be one master and many followers ;redis You can be a master and a slave . You can have one master and one slave ;
Storage data security :memcache After hanging up , The data is gone ;redis Can be saved to disk on a regular basis ( Persistence );
disaster recovery :memcache After hanging up , Data is not recoverable ; redis Data can be lost through aof recovery ;
Redis Support data backup , namely master-slave Mode data backup ;
The application scenarios are different :Redis Come out as NoSQL Database use outside , It can also be used as a message queue 、 Data stack, data cache, etc ;Memcached Suitable for caching SQL sentence 、 Data sets 、 User temporary data 、 Delay querying data and session etc. .

边栏推荐
- 2022.7.2day594
- EMD distance - example of use
- 2022.6.30DAY591
- Notepad++ wrap by specified character
- DEX net 2.0 for crawl detection
- Kubernetes resource object introduction and common commands (V) - (configmap)
- Analysis of the example of network subnet division in secondary vocational school
- Installation du plug - in CAD et chargement automatique DLL, Arx
- [together Shangshui Shuo series] day 7 content +day8
- Final review (Day2)
猜你喜欢

How do I migrate my altaro VM backup configuration to another machine?
![Together, Shangshui Shuo series] day 9](/img/39/c1ba1bac82b0ed110f36423263ffd0.png)
Together, Shangshui Shuo series] day 9

Redis cannot connect remotely.

Classification and discussion of plane grab detection methods based on learning

Map的扩容机制

DEX net 2.0 for crawl detection
![[trivia of two-dimensional array application] | [simple version] [detailed steps + code]](/img/84/98c1220d0f7bc3a948125ead6ff3d9.jpg)
[trivia of two-dimensional array application] | [simple version] [detailed steps + code]

Brief introduction of realsense d435i imaging principle

How to use source insight

今天很多 CTO 都是被干掉的,因为他没有成就业务
随机推荐
Why should we rewrite hashcode when we rewrite the equals method?
Method of finding prime number
How to install and configure altaro VM backup for VMware vSphere
Understand one-way hash function
Best practices for setting up altaro VM backups
[function explanation (Part 1)] | | knowledge sorting + code analysis + graphic interpretation
How do I migrate my altaro VM backup configuration to another machine?
期末复习(Day5)
SimpleITK学习笔记
Today, many CTOs were killed because they didn't achieve business
@Import annotation: four ways to import configuration classes & source code analysis
Gan network thought
AtCoder Beginner Contest 258(A-D)
Installation of CAD plug-ins and automatic loading of DLL and ARX
Niuke JS separator
Sophomore dilemma (resumption)
ansible防火墙firewalld设置
Ansible firewall firewalld setting
求质数的方法
【无标题】