cache table implementation

N

Navindra Umanee

Hi,

Does anyone have a cache table implementation for Ruby that expires
entries on a least-recently-used basis?

Thanks,
Navin.
 
N

Navindra Umanee

Austin Ziegler said:
http://raa.ruby-lang.org/project/ruby-cache/

I haven't ever used it, but it claims to use LRU. Both the RAA
(raa.ruby-lang.org) and RubyForge are your friends for this sort of
thing (although I found it through google: ruby lru cache).

Thanks, you're right. I did some Google searches with not much luck,
then realised I should look at other resources.

I didn't actually find this particular one. Seems like it might be a
bit old but there's a whole Library/Cache section on RAA. I'm looking
through that right now... some stuff seems to have disappeared
unfortunately.

Cheers,
Navin.
 
J

James G. Britt



And there's a simple object cache in Catapult (and, in a way, that's
basically all Catapult is, a WEBrick-hosted, URL-driven object cache),
though it never bothers to drop anything (but that's on purpose, since
that's a function better added via a dynamically loaded object, under
the principle of Don't Do Anything You Can Get Someone/Something Else
To Do Using Some Ruby Meta-programming, usually shortened to
DDAYCGS/SETDUSRMp. )

http://catapult.rubyforge.org/

James
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,167
Messages
2,570,911
Members
47,453
Latest member
MadelinePh

Latest Threads

Top