Trond Norbye's Weblog

« Previous day (Jan 26, 2009) | Main | Next day (Jan 27, 2009) »

http://blogs.sun.com/trond/date/20090127 Tuesday January 27, 2009

Noreply support for binary protocol in libmemcached

Just a short notice that I pushed a patch that implements support for noreply in the binary protocol implementation in libmemcached. In order to try it out you need to get a recent build of memcached:

trond@razor> hg clone http://hg.tangent.org/libmemcached 
destination directory: libmemcached
requesting all changes
adding changesets
adding manifests
adding file changes
added 623 changesets with 2375 changes to 210 files
updating working directory
144 files updated, 0 files merged, 0 files removed, 0 files unresolved
trond@razor> cd libmemcached
trond@razor> ./config/bootstap
./config/bootstrap: running `aclocal-1.10' 
./config/bootstrap: running `autoheader' 
./config/bootstrap: running `libtoolize --automake --copy --force' 
./config/bootstrap: running `automake-1.10 --add-missing --copy --force' 
configure.ac:42: installing `config/missing'
configure.ac:42: installing `config/install-sh'
clients/Makefile.am: installing `config/depcomp'
Makefile.am: installing `./INSTALL'
./config/bootstrap: running `autoconf' 
trond@razor> ./configure --enable-64bit --prefix=/opt/memcached
[ a lot of output ]
trond@razor> make all install
[ a lot of output ]
trond@razor> cd ..
trond@razor> git clone git://github.com/dustin/memcached.git
Initialized empty Git repository in /export/home/trond/khepri38/foobar/memcached/.git/
remote: Counting objects: 3451, done.
remote: Compressing objects: 100% (1162/1162), done.
remote: Total 3451 (delta 2377), reused 3286 (delta 2261)
Receiving objects: 100% (3451/3451), 1.04 MiB | 163 KiB/s, done.
Resolving deltas: 100% (2377/2377), done.
trond@razor> cd memcached
trond@razor> git checkout -b rewritten-bin origin/rewritten-bin
Branch rewritten-bin set up to track remote branch refs/remotes/origin/rewritten-bin.
Switched to a new branch "rewritten-bin"
trond@razor> ./autogen.sh
aclocal...
autoheader...
automake...
configure.ac:10: installing `./compile'
configure.ac:3: installing `./config.sub'
configure.ac:5: installing `./missing'
configure.ac:5: installing `./install-sh'
configure.ac:3: installing `./config.guess'
Makefile.am: installing `./depcomp'
autoconf...
trond@razor> ./configure --prefix=/opt/memcached --enable-64bit --enable-dtrace
[ a lot of output ]
trond@razor> make all test install
[ a lot of output ]

So unless you got a compilation error on your platform, you should now be able to start /opt/memcached/bin/memcached, and link your application with the libmemcached installed in /opt/memcached/lib.

Happy hacking :-)


Valid HTML! Valid CSS!

This is a personal weblog, I do not speak for my employer.