In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
[introduction]
REmote DIctionary Server (Redis) is a key-value storage system written by Salvatore Sanfilippo.
It is often called a data structure server because the value can be of types such as String, Hash, list, sets, and sorted sets.
[three characteristics of redis]
1. What are the characteristics of redis?
A:
① Redis supports data persistence. You can save the data in memory in the disk photo and load it again when you restart it.
② Redis not only supports simple key-value type data, but also provides storage of data structures such as list,set,zset,hash.
③ Redis supports data backup, that is, data backup in master-slave mode.
2. What are the advantages of redis?
A:
① performance is extremely high-Redis can read 110000 times per second and write 81000 times per second.
② rich data types-Redis supports Strings, Lists, Hashes, Sets and Ordered Sets data type operations for binary cases.
③ atom-all operations of Redis are atomic, meaning either successful execution or failure to execute at all. A single operation is atomic. Multiple operations also support transactions, that is, atomicity, wrapped by MULTI and EXEC instructions.
④ 's rich features-Redis also supports publish/subscribe, notification, key expiration, and so on.
[installation]
1. Windows installation is extremely simple
Run under the cmd window: redis-server.exe redis.windows.conf
2. Under Linux, run. / redis-server
Of course, this installation is the default configuration.
3. The difference between Redis and Memcached?
A:
① data types: redis provides five data types: string,hash,list,set and zset (sorted set); all values of Memcached are String. From this point of view, Redis is an extension of Memcached and an inclusion relationship.
② storage mode: all Memcached data is stored in memory, power outage will be lost, the storage capacity must not exceed the memory size; Redis has part of the data stored on the hard disk, which can ensure the persistence of the data. Thus it can be seen that Memcached compares low
Capacity of ③ single data: redis can reach 1GB at most, while memcache only has 1MB
④ underlying model: Redis builds its own VM mechanism directly.
4. The application scenario of Redis?
Answer: session cache (Session Cache), full page cache (FPC), message queue, ranking / counter, publish / subscribe.
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.