aditya01933 / lru_cache

A simple ruby LRU cache with hash and doubly linked list

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lru_cache

A simple ruby LRU cache developed using hash and doubly linked list

Tests covered

Screenshot 2022-07-03 at 11 22 51 PM

Benchmark result

Rehearsal --------------------------------------------
LRUCache   0.214681   0.000896   0.215577 (  0.215752)
----------------------------------- total: 0.215577sec

               user     system      total        real
LRUCache   0.194462   0.000137   0.194599 (  0.194754)

To run all the tests:

make test

To run the benchmark

make benchmark

About

A simple ruby LRU cache with hash and doubly linked list


Languages

Language:Ruby 96.5%Language:Makefile 2.0%Language:Dockerfile 1.5%