Skip to content

A Simple cache server built while learning Erlang/OTP.

License

Notifications You must be signed in to change notification settings

m4ver1k/simple-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple_cache

A Simple in memory KV/Cache Server Application. Uses Erlang Maps to store data.

simple_cache is a OTP Application with one top level supervisor and a worker gen_server. The gen_server (registered with name simple_cache) is the where all the code for cache reside.

A client API module wraps all OTP API called cache_client and expose a simple API to use the application.

Build

$ rebar3 compile

Test

$ rebar3 eunit

Basic Usage

1> l(cache_client).
{module,cache_client}
2> cache_client:start().
ok
3> cache_client:put(key,"value").
ok
4> cache_client:get(key).
"value"
5> cache_client:delete(key).
ok
6> cache_client:get(key).   
undefined

About

A Simple cache server built while learning Erlang/OTP.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages