当前位置:网站首页>[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. .
边栏推荐
- Altaro o365 total backup subscription plan
- Using the ethtool command by example
- 今天很多 CTO 都是被幹掉的,因為他沒有成就業務
- [teacher Zhao Yuqiang] Flink's dataset operator
- redis 遇到 NOAUTH Authentication required
- Btrfs and ext4 - features, strengths and weaknesses
- 大二困局(复盘)
- [written examination question analysis] | | get [sizeof and strlen] [pointer and array] graphic explanation + code analysis
- Export the altaro event log to a text file
- If function of MySQL
猜你喜欢
3dslam with 16 line lidar and octomap
大二困局(复盘)
Understand one-way hash function
【一起上水硕系列】Day 7 内容+Day8
Apache+PHP+MySQL环境搭建超详细!!!
"C and pointer" - Chapter 13 advanced pointer int * (* (* (*f) () [6]) ()
[teacher Zhao Yuqiang] redis's slow query log
Win10 install pytullet and test
kubernetes资源对象介绍及常用命令(五)-(ConfigMap)
Notepad++ wrap by specified character
随机推荐
CAD插件的安裝和自動加載dll、arx
Simpleitk learning notes
70 shell script interview questions and answers
[advanced pointer (2)] | [function pointer, function pointer array, callback function] key analysis + code explanation
C 语言文件操作函数大全 (超详细)
Exception when introducing redistemplate: noclassdeffounderror: com/fasterxml/jackson/core/jsonprocessingexception
Niuke JS separator
redis 遇到 NOAUTH Authentication required
[trivia of two-dimensional array application] | [simple version] [detailed steps + code]
今天很多 CTO 都是被幹掉的,因為他沒有成就業務
NG Textarea-auto-resize
Brief introduction of realsense d435i imaging principle
JS implements the problem of closing the current child window and refreshing the parent window
QT read write excel -- qxlsx insert chart 5
[untitled]
2022.DAY592
Xaml gradient issue in uwp for some devices
Understand one-way hash function
Altaro set grandfather parent child (GFS) archiving
Detailed explanation of iptables (1): iptables concept