Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
[ANN] Localmemcache-0.4.0: A persistent key-value database based on mmap()'ed shared memory.
Sven C. Koehler
5/6/2009 11:08:00 AM
Hi,
I am happy to release localmemcache 0.4.0 today. This version mainly
aims to make the API more complete and less confusing to users (thanks
for your feedback!). The version jump is mostly because of
incompatible API changes and that some of the adjustments required the
the database format to change which means that old .lmc files cannot be
read by 0.4.0.
API CHANGES
===========
- New class for storing Ruby objects directly instead of just strings:
LocalMemCache::SharedObjectStorage
- New instance methods: .clear() [clear/empty hashtable], .size(),
.each_pair(), .random_pair()
Cleanups:
- LocalMemCache's class methods .clear() and .clear_namespace() have
been renamed to .drop(). The :repair parameter is now called :force.
- LocalMemCache.check_namespace() has been removed (use .check()
instead).
*
http://localmemcache.ruby...
EXAMPLE
=======
require 'localmemcache'
# 1. the memcached way
# $lm = LocalMemCache.new :namespace => :viewcounters
# 2. the GDBM way
#$lm = LocalMemCache.new :filename => "./viewcounters.lmc"
# 3. Using LocalMemCache::SharedObjectStorage
$lm = LocalMemCache::SharedObjectStorage.new :filename => "./viewcounters.lmc"
$lm[:foo] = 1
$lm[:foo]
$lm.delete(:foo)
INSTALL
=======
# gem install localmemcache
(In case rubyforge has not yet updated the mirrors, fetch the 0.3.0 gem
from here:
http://github.com/sck/localmemcache...
and then do
# gem install localmemcache-0.4.0.gem )
CONTACT
=======
Please contact me with bugs, suggestions and patches at: schween + snafu # de
LINKS
=====
Localmemcache:
http://localmemcache.ruby...
Rubyforge project:
http://localmemcache.ruby...
Source code is hosted on github:
http://github.com/sck/loca...
Best,
Sven C. Koehler
4523cedca8e3ba8d5b51e611f0b24431 localmemcache-0.4.0.gem
c8d4be984ae5d115ef6e4deed40e7ea9 localmemcache-0.4.0.tar.gz
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
[ANN] Localmemcache-0.4.0: A persistent key-value database based on mmap()'ed shared memory.
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password