From: "Sven C. Koehler" Date: 2009-04-05T02:59:56+09:00 Subject: Re: [ANN] Localmemcache-0.2.0: The beauty of memcached. For local data. Blazingly fast. On Sat, Apr 04, 2009 at 07:51:07PM +0200, Sven C. Koehler wrote: > Hmm... Can you see the namespace in /var/tmp/localmemcache/ ? > Can you see the key in $lm.keys()? > Does ``du -h /var/tmp/localmemcache/viewcounters.lmc'' show that there's > content in the file? This is how it looks on my machine: | sck@comp ~/tmp $ uname -a | Linux comp 2.6.23-gentoo-r3-b #6 SMP Sat Aug 23 08:57:32 UTC 2008 | x86_64 Intel(R) Xeon(R) CPU E5205 @ 1.86GHz GenuineIntel GNU/Linux | sck@comp ~/tmp $ irb | irb(main):001:0> require 'localmemcache' | => true | irb(main):002:0> $lm = LocalMemCache.new :namespace => "viewcounters" | => # | irb(main):003:0> $lm.keys | => [] | irb(main):004:0> $lm[:foo] | => nil | irb(main):005:0> $lm[:foo] = 1 | => 1 | irb(main):006:0> $lm[:foo] | => "1" | irb(main):007:0> $lm.keys | => ["foo"] | irb(main):008:0> sck@comp ~/tmp $ | sck@comp ~/tmp $ ls -al /var/tmp/localmemcache/viewcounters.lmc | -rwxr-xr-x 1 sck sck 1073741824 Apr 4 17:52 | /var/tmp/localmemcache/viewcounters.lmc | sck@comp ~/tmp $ du -h /var/tmp/localmemcache/viewcounters.lmc | 16K /var/tmp/localmemcache/viewcounters.lmc | sck@comp ~/tmp $ irb | irb(main):002:0> require 'localmemcache' | => true | irb(main):003:0> $lm = LocalMemCache.new :namespace => "viewcounters" | => # | irb(main):004:0> $lm.keys | => ["foo"] | irb(main):005:0> -S.