G
George Moschovitis
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 (e-mail address removed). 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.
=======
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 (e-mail address removed). 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.