Windows で Memcached を使う
Memcache の公式サイトには Windows 版のバイナリがないため、ユーザーが作成したバイナリファイルを利用するのが手っ取り早い。
しかし、検索をしてみると情報が古いものばかりで、memcachedd 1.2.6 の情報ばかりだった。現在の最新版は 1.4.14 で探してみると、下記のサイトで最新版が配布されているのを見つけた。
- memcached on Windows
- 32bit版: http://s3.amazonaws.com/downloads.northscale.com/memcached-win32-1.4.4-14.zip
- 64bit版: http://s3.amazonaws.com/downloads.northscale.com/memcached-win64-1.4.4-14.zip
上記のバージョンよりも古くなるが、1.4.x 版を下記のサイトで見つけた。
上記のサイトで配布されているバージョンは、1.4.5 が最新版になるが、次のサイトで(古い)やりかたで memcached をサービスとして登録できないと書かれていた。
rem PC起動時に立ち上がるようにする memcached.exe -d install rem memcachedデーモンを起ち上げておく memcached.exe -d start
サービスとして登録できない件については、
Recently, I was working on memcached with windows machine. Memcached is built for linux platform. It's latest stable version is 1.4.15. But we haven't found the compatible windows binary file for the latest version. I have found binary for memcache 1.4.5, but it was providing errors while installing with the command:
http://newdailyblog.blogspot.jp/2013/05/installing-memcached-144-on-windows.html
memcache.exe -d install
It hung up on the window. I googled and found that '-d' option is no longer supported.
と書かれているように、コマンドのオプションが廃止されたようだ。