Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker. It supports data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs, geospatial indexes with radius queries and streams. Redis has built-in replication, Lua scripting, LRU eviction, transactions and different levels of on-disk persistence, and provides high availability via Redis Sentinel and automatic partitioning with Redis Cluster.
You can run atomic operations on these types, like appending to a string; incrementing the value in a hash; pushing an element to a list; computing set intersection, union and difference; or getting the member with highest ranking in a sorted set.
- Redis基于内存存储
- 可用作数据库、缓存和消息代理
- 支持多种数据结构
- 多种持久化机制
- 可搭建高可用集群
- 支持原子操作
In order to achieve its outstanding performance, Redis works with an in-memory dataset. Depending on your use case, you can persist it either by dumping the dataset to disk every once in a while, or by appending each command to a log. Persistence can be optionally disabled, if you just need a feature-rich, networked, in-memory cache.
Redis数据存储在内存中,也提供了持久化机制,可以根据使用情况来选择持久化机制,可以每隔一段时间将数据持久化到磁盘,也可以将命令追加到日志中。如果只用作缓存,持久化机制也可以设置为无效。
Redis also supports trivial-to-setup master-slave asynchronous replication, with very fast non-blocking first synchronization, auto-reconnection with partial resynchronization on net split.
Redis还支持简单设置的主从异步复制,具有非常快的非阻塞首次同步,自动重连接和部分重同步。
You can use Redis from most programming languages out there.
支持绝大多数的编程语言:支持的编程语言