From: Robert Klemme Date: 2004-09-28T22:19:21+09:00 Subject: Re: [ANN] ncache 0.9 "George Moschovitis" schrieb im Newsbeitrag news:1096376843.286908.103730@k17g2000odb.googlegroups.com... > > class LruCache > > ListItem = Struct.new(:obj,:prev,:next) > > ... > > end > > end > > This is a nice trick! Do you have any idea how I can get rid of the > lru_key > field of the mixin too? class LruCache ListItem = Struct.new(:key,:obj,:prev,:next) .... end end Then put ListItems into the hash. > the lru_key is used here: > 124: delete(last.lru_key) if size() > @max_items > best regards, > George Moschovitis Of course. robert