Least Recently Used(LRU) cache using lruc
- add conf.gem line to
build_config.rb
MRuby::Build.new do |conf|
# ... (snip) ...
conf.gem :mgem => 'mruby-lruc'
end
assert("LRUC#set/get") do
l = LRUC.new 1024, 1024
l.set "hoge", "fuga"
assert_equal("fuga", l.get("hoge"))
end
under the MIT License:
- see LICENSE file