Get the App
SLTechnology News&Howtos  ›  Database  › 

What's the use of redis?

Shulou Source: shulou.com Published: 2022-06-01 01:55:56 10月04日 Update

This article mainly introduces the use of redis, has a certain reference value, friends in need can refer to. 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. Since March 15, 2010, the development of Redis has been presided over by VMware. Since May 2013, the development of Redis has been sponsored by Pivotal.

Redis is a key-value storage system. Similar to Memcached, it supports relatively more value types, including string (string), list (linked list), set (collection), zset (sorted set-ordered collection), and hash (hash type). These data types support push/pop, add/remove, and take intersection union and difference sets, and richer operations, and these operations are atomic. (recommended: "Redis Video tutorial")

On this basis, redis supports a variety of different sorting methods. Like memcached, data is cached in memory for efficiency.

The difference is that redis will periodically write updated data to disk or modify operations to additional record files, and on this basis to achieve master-slave (master-slave) synchronization.

Redis is a high-performance key-value database. The emergence of redis makes up for the deficiency of key/value storage such as memcached to a great extent, and can play a good complementary role to relational database in partial situations. It provides clients such as Java,C/C++,C#,PHP,JavaScript,Perl,Object-C,Python,Ruby,Erlang, which is easy to use.

Redis supports master-slave synchronization. Data can be synchronized from the master server to any number of slave servers, which can be the master server associated with other slave servers. This makes it possible for Redis to perform single-layer tree replication. Save the disk can intentionally or unintentionally write to the data.

Because the publish / subscribe mechanism is fully implemented, when the slave database synchronizes the tree anywhere, it can subscribe to a channel and receive the complete message release record of the master server. Synchronization is helpful for scalability and data redundancy of read operations.

The official website address of redis, very easy to remember, is redis.io. (specially checked, the domain suffix io belongs to the national domain name, which is british Indian Ocean territory, that is, the British Indian Ocean Territory.)

Currently, Vmware is funding the development and maintenance of redis projects.

Thank you for reading this article carefully. I hope the editor will share the usefulness of redis to help you. At the same time, I also hope you will support us, pay attention to the industry information channel, and find out if you encounter problems. Detailed solutions are waiting for you to learn!

Tags: Data server support service synchronization database article type storage development master / slave memory domain name foundation language channel help subscription order intentionally or unintentionally Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Linux Shulou Technology NVidia macOS