更新redis到2.2.1版本

來源:互聯網
上載者:User

今天把redis從2.0.4升級到2.2.1的了,伺服器和開發環境都進行了升級了。先來看看redis的update notes.

Redis 2.2 release notes 
Migrating from 2.0 to 2.2   從2.0遷移到2.2版本
Redis 2.0 is mostly a strict subset of 2.2.  

Some return value changed in edgecases, basicaly it is very unlikely that you will experience any problemupgrading your 2.0 instances to 2.2, as 2.2 can work as a drop in replacementfor 2.0.
---------CHANGELOG---------
What's new in Redis 2.2.1=========================
Redis 2.2.1 is a bugfix release. Changelog:
* Fixed an SPOP crash. When using SPOP in a MULTI/EXEC block there was a problem  introduced in the latest release when fixing an SPOP replication/AOF related  bug.
What's new in Redis 2.2.0 final===============================
Redis 2.2.0 final is both a bug fix and minor enhancement release:
* SPOP is now replicated correctly in AOF and across slaves.* CONFIG SET/GET for all the special encoding parameters of sets, lists, hashes.* Now BRPOPLPUSH will reply with single null bulk on timeout.* Specifying port 0 in redis.conf will tell Redis to don't listen on TCP socket.* Propagate key eviction to slaves and AOF, similarly to expires.
What's new in Redis 2.1.10 (2.2 Release Candidate 4)====================================================
Redis 2.2 RC4 is a bug fix and minor enhancement release:
* Fixed timeout error in replication where master took a big time to BGSAVE.* Introduced explicit PING between master and slave, to reliably detect when  the link is down, even if the socket remains apparently connected.* Fixed compilation on FreeBSD.* Removed a small portability issue in redis-benchmark.
What's new in Redis 2.1.10 (2.2 Release Candidate 3)====================================================
Redis 2.2 RC3 is a bug fix and minor enhancements release:
* Solaris fixes* Fixes and improvements for redis-benchmark* New INFO field with memory allocation details* New INFO fields with info about clients max input/output buffer* Replication: KEYS fixed in slaves* Different default thresholds for Hash type memory saving encodings
What's new in Redis 2.1.10 (2.2 Release Candidate 2)====================================================
Redis 2.2 RC2 is exactly like RC1 with the following minor changes:
* Added evicted keys counter separated from expired keys.* Overflow detection in INCR family functions.
Enjoy,Salvatore
What's new in Redis 2.1.9 (2.2 Release Candidate 1)===================================================
This is the first Release Candidate of Redis 2.2, in our experience theserver is very stable, but in the latest weeks we rewrote part of the internalsin order to use a lot less memory while the saving child process is performinga BGREWRITEAOF or a BGSAVE, so handle with care for a couple of weeks.
Oh, and I've some very good news: the majority of apps can work if you simply replace 2.2 in your old 2.0 environment. I can't think of any breakage.
WHAT'S NEW IN REDIS 2.2 compared to the 2.0 version?====================================================
* Specially encoded data types, small lists and sets can now use up to an order of magnitude less memory.* VM partial rewrite for code cleaness and memory usage.* Change to the implementation of the top level dictionary for better memory efficienty.* redis-cli is hugely improved: tab completion, inline help (Thanks to TJ Holowaychuk), raw output, rewritten using the new hiredis C library.* Networking internals rewritten for efficiency. You can expect LRANGE and similar commands to be at least 10 times faster.* Most read only commands are now copy-on-write friendly, this means that Redis will use little memory when a saving child is active and the parent process is mostly stressed by read queries.* Non blocking replication even from the point of view of the slave, with configurable behavior about what to do when the link is disconnected. You can select if serving old data or replying with an error.* Check-and-set (CAS) transactions with the new WATCH command.* Now write operations work against keys with an EXPIRE set! Imagine the possibilities.* New maxmemory eviction policies. It is possible to select among LRU, farest TTL expire, and other algorithms, and if when the memory limit is reached only keys with an expire set or all the keys should be expired.* SETBIT / GETBIT / SETRANGE / GETRANGE / STRLEN. Now your strings are your arrays!* Syslog support (Thanks to Jonah H. Harris)* Unix domain socket support.* New List related functions LINSERT, LPUSHX, RPUSHX (Thanks to Robey Pointer)* BRPOPLPUSH (Thanks to Michel Martens and Damian Janowski)* Much more interesting informations in the INFO output.* Sorted sets are now less memory hungry.* Non blocking loading of .rdb / AOF file on startup, with progress information in the INFO output.* Now Redis has a clean, powerful, supported C library: hiredis.* Code layout completely new, the 2.0.x huge redis.c file is now splitted in many parts.* Redis-benchmark rewritten to be faster and in order to use hiredis as well.* Ability to rename or disable commands from the config file.* Endless other CPU optimizations and bugs fixed.
Credits: Where not specified the implementation and design are done by Salvatore Sanfilippo and Pieter Noordhuis. Thanks to VMware for making all this possible. Also many thanks to all the other contributors and the amazing community we have.
Cheers,Salvatore

當前的使用感受:

1.編譯安裝變得不一樣了

make && make install 自動進行了複製和原來的make很不一樣

2.加強了redis-cli

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.