Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/goncalotomas/kashe

A simple LRU Cache with no dependencies written in Erlang
https://github.com/goncalotomas/kashe

cache erlang

Last synced: 6 days ago
JSON representation

A simple LRU Cache with no dependencies written in Erlang

Awesome Lists containing this project

README

        

# kashe (/kæʃ/) - Simple LRU cache
[![Build Status](https://travis-ci.org/ClicaAi/kashe.svg?branch=master)](https://travis-ci.org/ClicaAi/kashe)
[![hex version](https://img.shields.io/hexpm/v/kashe.svg)](https://hex.pm/packages/kashe)

A very simple fixed-size cache implementation with a minimal `get` and `put` interface. Distributed as an OTP application and it can be used as a dependency.

## Build

$ rebar3 compile

Testing it out
-----

$ rebar3 shell
1> kashe:get(1).
undefined
2> kashe:put(<<"meaning of life">>, 42).
ok
3> kashe:get(<<"meaning of life">>).
42