Home >Common Problem >What database is redis?

What database is redis?

(*-*)浩
(*-*)浩Original
2019-05-14 17:59:573917browse

Redis is an open source log-type Key-Value database written in ANSI C language, supports network, can be memory-based and persistent, and provides APIs in multiple languages. Since March 15, 2010, the development of Redis has been hosted by VMware. Since May 2013, the development of Redis has been sponsored by Pivotal.

Recommended course: Redis Tutorial.

What database is redis?

#Redis is a key-value storage system. Similar to Memcached, it supports relatively more stored value types, including string (string), list (linked list), set (set), zset (sorted set - ordered set) and hash (hash type). These data types all support push/pop, add/remove, intersection, union, difference, and richer operations, and these operations are all atomic. On this basis, redis supports various different ways of sorting. Like memcached, data is cached in memory to ensure efficiency. The difference is that redis will periodically write updated data to disk or write modification operations to additional record files, and on this basis, master-slave (master-slave) synchronization is achieved.

Redis is a high-performance key-value database. The emergence of redis has largely compensated for the shortcomings of key/value storage such as memcached, and can play a very good supplementary role to relational databases in some situations. It provides Java, C/C, C#, PHP, JavaScript, Perl, Object-C, Python, Ruby, Erlang and other clients, which is very convenient to use.

Redis supports master-slave synchronization. Data can be synchronized from the master server to any number of slave servers, and the slave server can be a master server associated with other slave servers. This allows Redis to perform single-level tree replication. Saving can write data intentionally or unintentionally. Since 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 is very easy to remember, it is redis.io. (I checked specifically and found that the domain name suffix io ​​belongs to the national domain name and is the British Indian Ocean territory)

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

Author

The author of redis, named Salvatore Sanfilippo, comes from Sicily, Italy, and now lives in Catania. Currently working for Pivotal. He uses the online name antirez.

Performance

The following is the official benchmark-mark data: [1]

The test completed 50 concurrent executions 100,000 requests.

The value set and obtained is a 256-byte string.

The Linux box is running Linux 2.6, which is X3320 Xeon 2.5 ghz.

Text execution uses the loopback interface (127.0.0.1).

Result: The reading speed is 110000 times/s, and the writing speed is 81000 times/s.

Supported Languages

Many languages ​​include Redis support, including:

ActionScript
Common Lisp
Haxe
Objective-C
R
C
Dart
Io
Perl
Ruby
C
Erlang
Java
PHP
Scala
C
#Go
Node.js
Pure Data
Smalltalk
Clojure
Haskell
Lua
Python
Tcl




##

The above is the detailed content of What database is redis?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:What is cloud serviceNext article:What is cloud service