https://github.com/matsumotory/mruby-lruc
https://github.com/matsumotory/mruby-lruc
lru mruby
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/matsumotory/mruby-lruc
- Owner: matsumotory
- License: other
- Created: 2017-02-03T06:31:27.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-03-27T05:10:40.000Z (almost 8 years ago)
- Last Synced: 2025-04-30T08:51:58.202Z (10 months ago)
- Topics: lru, mruby
- Language: C
- Size: 13.7 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mruby-lruc [](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