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
- Host: GitHub
- URL: https://github.com/holsee/fridge
- Owner: holsee
- Created: 2014-12-29T15:58:04.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-12-29T16:00:12.000Z (over 10 years ago)
- Last Synced: 2025-02-05T06:44:46.541Z (4 months ago)
- Language: Elixir
- Size: 113 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```