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

https://github.com/holsee/fridge

A fridge implemented as an OTP GenServer in Elixir
https://github.com/holsee/fridge

Last synced: 3 months ago
JSON representation

A fridge implemented as an OTP GenServer in Elixir

Awesome Lists containing this project

README

        

Fridge
======

Simple demo to show creating an OTP GenServer in Elixir which has a pretty API for storing and taking items from a _fridge_.

``` elixir
fridge = FridgeServer.start_link []
FridgeServer.store fridge, :bacon
{:ok, :bacon} == FridgeServer.take fridge, :bacon
:not_found == FridgeServer.take fridge, :bacon
```