I am happy to announce the next version of localmemcache (0.2.0), a
library that aims to provide an interface similar to memcached but for
accessing local data instead of remote data. It’s based on mmap()'ed
shared memory for maximum speed.
Changes for 0.2.0:
- Localmemcache uses logging now: In case your application is
while accessing the shared memory (eg by a kill -9), localmemcache
now able to restore the integrity of your data.
- \0 character can now be used in keys and values
- The ruby binding now features a keys() method.
- Added a C API.
- lightweight: The core library is just about 1300 lines of C code
- fast: About 40% slower than Ruby’s hash (or about 36 times
faster than a local memcached).
$lm = LocalMemCache.new :namespace => “viewcounters”
$lm[:foo] = 1
gem install localmemcache
(In case rubyforge has not yet updated the mirrors, fetch the 0.2.0 gem
from here: http://github.com/sck/localmemcache/downloads and then do
gem install localmemcache-0.2.0.gem )
Please contact me with bugs, suggestions and patches at: schween + snafu
Source code is hosted on github: http://github.com/sck/localmemcache/
Sven C. Koehler