In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the meaning of redis, which has certain reference value and can be used for reference by friends who need it. I hope you will learn a lot after reading this article. Next, let the editor take you to learn about it.
Redis is an open source API that is written in ANSI C language, supports the network, can be memory-based and persistent, and provides API in multiple languages.
Redis is a very fast open source non-relational, Key-Value database, often referred to as a data structure server; it stores key mappings of five different types of values. Used as a database, cache and message broker.
One of the main differences between Redis and other key-value databases is the ability of Redis to store and manipulate advanced data types. These data types are basic data structures (lists, mappings, collections, and sort sets) that most developers are familiar with. Redis's excellent performance, simplicity and atomic operation of data structures help to solve the problems that are difficult to implement or perform poorly when using traditional relational database implementations.
Redis storage
Redis uses two file formats: full data and incremental requests.
The full data format is to write the data in memory to disk, so that the file can be read and loaded next time.
The incremental request file serializes the data in memory into operation request, which is used to read the file and replay to get the data. The serialization operations include SET, RPUSH, SADD and ZADD.
The storage of redis is divided into three parts: memory storage, disk storage and log file, and there are three parameters in the configuration file to configure it.
Save seconds updates,save configuration, which indicates how many updates are performed within a period of time, and then synchronizes the data to the data file. This can be matched by multiple conditions, such as the settings in the default configuration file, which set three conditions.
Appendonly yes/no, appendonly configuration, indicating whether to log after each update operation. If it is not enabled, it may result in data loss for a period of time in the event of a power outage. Because redis itself synchronizes data files according to the above save conditions, some data will only exist in memory for a period of time.
Appendfsync no/always/everysec, appendfsync configuration, no and other operating systems synchronize the data cache to disk. Always means to manually call fsync () to write data to disk after each update operation, and everysec means to synchronize once a second.
Thank you for reading this article carefully. I hope it is helpful for everyone to share what redis means. At the same time, I also hope you can support us, pay attention to the industry information channel, and find out if you have any problems. Detailed solutions are waiting for you to learn!
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.