環境
Mac OSX 10.8
homebrew 0.9.2
目的
- 2.6から追加された
bitcount
やbitop
を試したい -
releasenoteによると,
UPGRADE URGENCY: We suggest new users to start with 2.6.0, and old users to upgrade after some testing of the application with the new Redis version.
とのことなので2.4ユーザーはupgrade準備しておいたほうがよさそう - luaコードが実行できる(ドキュメント)
- どういうケースで使うんだこれ…
インストール
$ brew install redis --devel
$ redis-cli --version
redis-cli 2.5.12 # 2.5.12 == 2.6rc5らしい
$ redis-server /usr/local/etc/redis.conf
設定変更
2.4 -> 2.6 upgradeにあたって何点か設定ファイルを変更.
vm機能が削除
実行時に以下のようなエラーが出る
エラーログ
*** FATAL CONFIG FILE ERROR ***
Reading the configuration file, at line 375
>>> 'vm-enabled no'
Bad directive or wrong number of arguments
/usr/local/etc/redis.conf/
該当行の少し上にWARNING! Virtual Memory is deprecated in Redis 2.4
と書いてあるので素直に消す
hash-max-zipmap-XXX -> hash-max-ziplist-XXX
releasenoteにある通りconfigのキーが変わっているので対応する