George Moschovitis wrote: > n/cache > ======= > > A collection of usefull caching methods. This release introduces a > simple, yet efficient LRU cache implementation. The following example > demonstrates the usage of an LRU cache with a maximum of 10 items: > > > require "n/cache" > > class Dummy > include N::LRUCache::Item > end > > item = Dummy.new > cache = N::LRUCache.new(maxitems = 10) > cache["the-key"] = item > p cache["the-key"].class > > > For more examples consult the included test case. > > If you 've found a bug, have questions, or suggestions and ideas > regarding this release, please contact the author at gm / navel.gr. All > valueable contributions will be integrated in a future release. > > This code is licenced under the same licence as Ruby. To get the latest > > version and more open source releases by Navel please visit > http://www.navel.gr/open-source. > > > > (c) 2004 Navel, all rights reserved. > > -- > * 0.9: 27/09/2004, Initial public release. > * 0.8: 24/09/2004, LRU Cache, released to beta-testers. > > Hello George, I don't have the time to check it out now, but I would be interested in why it is neccessary to extend the cached classes? What functionality can be needed in the cached data to make a cache more efficient? Regards, Brian -- Brian Schröäer http://ruby.brian-schroeder.de/