Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 593 Bytes

README.md

File metadata and controls

27 lines (21 loc) · 593 Bytes

mruby-lruc Build Status

Least Recently Used(LRU) cache using lruc

install by mrbgems

  • add conf.gem line to build_config.rb
MRuby::Build.new do |conf|

    # ... (snip) ...

    conf.gem :mgem => 'mruby-lruc'
end

example

assert("LRUC#set/get") do
  l = LRUC.new 1024, 1024
  l.set "hoge", "fuga"
  assert_equal("fuga", l.get("hoge"))
end

License

under the MIT License:

  • see LICENSE file