Hello Linux Geeksters. As you may know, Redis Server is an open-source, key value data store for Cassandra, CouchDB and MongoDB.
The latest version available is Redis Server 3.0.0, which has been recently released, coming with a huge list of changes.
What’s new in Redis 3.0 compared to Redis 2.8:
- Redis Cluster: a distributed implementation of a subset of Redis.
- New “embedded string” object encoding resulting in less cache misses. Big speed gain under certain work loads.
- AOF child -> parent final data transmission to minimize latency due to “last write” during AOF rewrites.
- Much improved LRU approximation algorithm for keys eviction.
- WAIT command to block waiting for a write to be transmitted to the specified number of slaves.
- MIGRATE connection caching. Much faster keys migraitons.
- MIGARTE new options COPY and REPLACE.
- CLIENT PAUSE command: stop processing client requests for a specified amount of time.
- BITCOUNT performance improvements.
- CONFIG SET accepts memory values in different units (for example you can use “CONFIG SET maxmemory 1gb”).
- Redis log format slightly changed reporting in each line the role of the instance (master/slave) or if it’s a saving child log.
- INCR performance improvements.
Refactoring changes (no new features nor bug fixes):
- Blocking operations full refactoring (blocked.c)
- Client output buffer memory tracking refactored.
- Fixes to diskless replication.
- Test for BLPOP replication on role change.
- prepareClientToWrite() error handling improvements.
- Remove dict.c no longer used function.
In this article I will show you how to install Redis Server 3.0.0 on Ubuntu 14.10 Utopic Unicorn, Ubuntu 14.04 Trusty Tahr, Ubuntu 12.04 Precise Pangolin, Linux Mint 17.1 Rebecca, Linux Mint 17 Qiana, Linux Mint 13 Maya, Elementary OS 0.3 Freya, Elementary OS 0.2 Luna, Pinguy OS 14.04, Deepin 2014, Peppermint Five, LXLE 14.04, Linux Lite 2 and other Ubuntu derivative systems.
Because it is available via PPA, installing Redis Server 3.0.0 on Ubuntu 14.10, Ubuntu 14.04, Ubuntu 12.04 and derivative systems is easy. All you have to do is add the ppa to your system, update the local repository index and install the redis-server package. Like this:
$ sudo add-apt-repository ppa:chris-lea/redis-server
$ sudo apt-get update
$ sudo apt-get install redis-server
Optional, to remove redis, do:
$ sudo apt-get remove redis-server