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

边栏推荐
- Final review (Day2)
- Installing altaro VM backup
- [branch and cycle] | | super long detailed explanation + code analysis + a trick game
- PHP notes are super detailed!!!
- 卷积神经网络CNN中的卷积操作详解
- 【无标题】
- Capacity expansion mechanism of map
- Jetson AGX Orin 平台移植ar0233-gw5200-max9295相机驱动
- Altaro o365 total backup subscription plan
- @Import annotation: four ways to import configuration classes & source code analysis
猜你喜欢

Altaro o365 total backup subscription plan
![Together, Shangshui Shuo series] day 9](/img/39/c1ba1bac82b0ed110f36423263ffd0.png)
Together, Shangshui Shuo series] day 9

Communication - how to be a good listener?

kubernetes资源对象介绍及常用命令(五)-(ConfigMap)

Strategy pattern: encapsulate changes and respond flexibly to changes in requirements
![[function explanation (Part 2)] | [function declaration and definition + function recursion] key analysis + code diagram](/img/29/1644588927226a49d4b8815d8bc196.jpg)
[function explanation (Part 2)] | [function declaration and definition + function recursion] key analysis + code diagram
![[branch and cycle] | | super long detailed explanation + code analysis + a trick game](/img/aa/543d4f0dcbcd664be963579af77ec9.jpg)
[branch and cycle] | | super long detailed explanation + code analysis + a trick game
![[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]

Apache+PHP+MySQL环境搭建超详细!!!

Map的扩容机制
随机推荐
Redhat7 system root user password cracking
AtCoder Beginner Contest 258(A-D)
Jetson AGX Orin 平台移植ar0233-gw5200-max9295相机驱动
MySQL startup error: several solutions to the server quit without updating PID file
【无标题】
Final review (Day2)
【无标题】
EMD distance - example of use
[teacher Zhao Yuqiang] Flink's dataset operator
Why should we rewrite hashcode when we rewrite the equals method?
配置xml文件的dtd
The request database reported an error: "could not extract resultset; SQL [n/a]; needed exception is org.hibernate.exception.sqlgram"
PHP笔记超详细!!!
Txt document download save as solution
获取并监控远程服务器日志
[written examination question analysis] | | get [sizeof and strlen] [pointer and array] graphic explanation + code analysis
Export the altaro event log to a text file
Sophomore dilemma (resumption)
Redhat7系统root用户密码破解
ROS Compilation Principle