In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
1. Both Redis and Memcache store data in memory, and both are in-memory databases. But memcache can also be used to cache other things, such as pictures, videos, etc.
2. Redis not only supports simple KBH data, but also provides storage of data structures such as list,set,hash.
3. Virtual memory-Redis when physical memory is used up, you can swap some value that has not been used for a long time to disk
4. Expiration policy-memcache is specified when set, for example, set key1 008, that is, never expires. Redis can be set by, for example, expire, such as expire name 10
5. Distributed-set memcache cluster and use magent as one master and multiple slaves; redis can do one master and multiple slaves. All can have one master and one slave.
6. Storage data security-after memcache is hung up, the data is gone; redis can be saved to disk on a regular basis (persistence)
7. Disaster recovery-after the memcache is down, the data cannot be recovered; after the redis data is lost, it can be recovered through aof
8. Redis supports data backup, that is, data backup in master-slave mode.
9. Application scenarios are different: Redis can be used not only as NoSQL database, but also as message queue, data stack and data cache. Memcached is suitable for caching SQL statements, data sets, user temporary data, deferred query data, session and so on.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.