-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
31d5b13
commit a59d4e1
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# TO BE IMPLEMENTED !!! | ||
# defmodule GetGeocodeCash do | ||
# use GenServer | ||
|
||
# def init(state) do | ||
# {:ok, state} | ||
# end | ||
|
||
# def handle_cast({:store, new_data}, _state) do | ||
# {:noreply, new_data} | ||
# end | ||
|
||
# def handle_call({:get, cep}, _from, data) do | ||
# result = Map.get(data, cep) | ||
# {:reply, result, data} | ||
# end | ||
|
||
# def start_link(state \\ []) do | ||
# GenServer.start_link(__MODULE__, state, name: __MODULE__) | ||
# end | ||
|
||
# def store(new_data) do | ||
# GenServer.cast(__MODULE__, {:store, new_data}) | ||
# end | ||
|
||
# def get(cep) do | ||
# GenServer.call(__MODULE__, {:get, cep}) | ||
# end | ||
# end |