In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.