Redis 3.2.8 recently released, is an open source, in-memory data structure store, used as a database to cache and message broker. It supports data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs and geospatial indexes with radius queries. Redis has built-in replication, as well as 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. Before we look into how to install Redis on Ubuntu, lets take a quick look at its properties.
- Supports trivial-to-setup master-slave asynchronous replication, with very fast non-blocking first synchronization. As well as auto-reconnection with partial resynchronization on net split
- Transactions – allows redis to execute a group of commands in a single step
- Pub/Sub – Messages sent by other clients to these channels will be pushed by Redis to all the subscribed clients
- Lua scripting – EVAL and EVALSHA are used to evaluate scripts using the Lua interpreter built into Redis starting from version 2.6.0.
- Keys with a limited time-to-live – Set a timeout on key. After the timeout has expired, the key will automatically be deleted
- LRU eviction of keys – When Redis is used as a cache, often it expected to let it automatically evict old data as you add new one. Hence LRU is one of the supported eviction methods
- Automatic failover – Redis Sentinel provides high availability for Redis
- Furthermore, you can use Redis from most programming languages out there
- Its written in ANSI C and works in most POSIX systems like Linux, *BSD, as well as OS X without external dependencies.
Redis 3.2.8 Changelog
This release comes with two important bug fixes, the first of one is critical:
- Apparently Jemalloc 4.4.0 may contain a deadlock under particular conditions. Previously used Jemalloc versions was reverted back to.
- MIGRATE could crash the server after a socket error
How to install Redis 3.2.8 on Ubuntu 17.04, Ubuntu 16.10, Ubuntu 16.04, Ubuntu 14.04
sudo add-apt-repository ppa:chris-lea/redis-server sudo apt-get update && sudo apt-get install redis
How to uninstall Redis from Ubuntu
sudo apt-get remove redis