On Sat, Apr 4, 2009 at 7:50 PM, Sven C. Koehler <schween / snafu.de> wrote:
> Hmm... Can you see the namespace in /var/tmp/localmemcache/ ?

Yes
$ ls /var/tmp/localmemcache/
foo.lmc  viewcounters.lmc


> Can you see the key in $lm.keys()?
Yes, but they are duplicated after setting on the same key:

>> $lm =3D LocalMemCache.new :namespace =3D> "viewcounters"
=3D> #<LocalMemCache:0x7f9c05d844d0>
>> $lm.keys
=3D> []
>> $lm[:foo] =3D 1
=3D> 1
>> $lm[:foo]
=3D> nil
>> $lm.keys
=3D> ["foo"]
>> $lm[:foo] =3D 2
=3D> 2
>> $lm[:foo]
=3D> nil
>> $lm.keys
=3D> ["foo", "foo"]

> Does ``du -h /var/tmp/localmemcache/viewcounters.lmc'' show that there's
> content in the file?
>

$ du -h /var/tmp/localmemcache/viewcounters.lmc
20K	/var/tmp/localmemcache/viewcounters.lmc


--=20
Pozdrawiam

Rados=B3aw Bu=B3at
http://radarek.jogger.pl - m=F3j blog