An open API service indexing awesome lists of open source software.

https://github.com/matsumotory/mruby-lruc


https://github.com/matsumotory/mruby-lruc

lru mruby

Last synced: 7 months ago
JSON representation

Awesome Lists containing this project

README

          

# mruby-lruc [![Build Status](https://travis-ci.org/matsumotory/mruby-lruc.svg?branch=master)](https://travis-ci.org/matsumotory/mruby-lruc)

Least Recently Used(LRU) cache using [lruc](https://github.com/willcannings/C-LRU-Cache)

## install by mrbgems
- add conf.gem line to `build_config.rb`

```ruby
MRuby::Build.new do |conf|

# ... (snip) ...

conf.gem :mgem => 'mruby-lruc'
end
```
## example
```ruby
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