当前位置:网站首页>[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. .

边栏推荐
- Linux登录MySQL出现ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: YES)
- Notepad++ wrap by specified character
- Error 1045 (28000) occurs when Linux logs in MySQL: access denied for user 'root' @ 'localhost' (using password: yes)
- [trivia of two-dimensional array application] | [simple version] [detailed steps + code]
- Life is a process of continuous learning
- 2022.7.2day594
- Beaucoup de CTO ont été tués aujourd'hui parce qu'il n'a pas fait d'affaires
- ROS Compilation Principle
- Today, many CTOs were killed because they didn't achieve business
- Strategy pattern: encapsulate changes and respond flexibly to changes in requirements
猜你喜欢

QT read write excel -- qxlsx insert chart 5
![[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]

2022.DAY592

Final review (Day5)

SimpleITK学习笔记

Export the altaro event log to a text file

Linux登录MySQL出现ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: YES)

为什么网站打开速度慢?

Strategy pattern: encapsulate changes and respond flexibly to changes in requirements

Gan network thought
随机推荐
PHP笔记超详细!!!
AtCoder Beginner Contest 258(A-D)
Common exceptions when Jenkins is released (continuous update...)
Azure file synchronization of altaro: the end of traditional file servers?
Method of finding prime number
Detailed explanation of iptables (1): iptables concept
【一起上水硕系列】Day 7 内容+Day8
[escape character] [full of dry goods] super detailed explanation + code illustration!
CAD插件的安裝和自動加載dll、arx
Exception when introducing redistemplate: noclassdeffounderror: com/fasterxml/jackson/core/jsonprocessingexception
32GB Jetson Orin SOM 不能刷机问题排查
mapbox尝鲜值之云图动画
[set theory] relational closure (reflexive closure | symmetric closure | transitive closure)
2022.6.30DAY591
Training method of grasping angle in grasping detection
Why is the website slow to open?
Classification and discussion of plane grab detection methods based on learning
Altaro set grandfather parent child (GFS) archiving
redis 无法远程连接问题。
[together Shangshui Shuo series] day 7 content +day8