GitHub - fabientownsend/tiny-cache

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Repository files navigation

I want to learn how a cache work!

When cache are used everywhere in the software industry, I had no idea how it work. This is why I wrote this tiny cache.

The idea here is present the different concepts of a cache and make it easy to understand.

  • Cache hit and hit ration
  • Cache miss
  • Storage cost
  • Retrieval complexity
  • Replacement policy

Here is the code

Demo

ruby demo.rb

Tests

rspec cache_spec.rb

About

No description, website, or topics provided.

Resources

Readme

Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks

Releases

No releases published

Languages