Packages

A bare bones interface for the Pokemon API. It can get selected information for a pokemon by name, as well as the complete list of pokemons. This is a student project to learn about caching, ETS, GenServers, supervisors, mix, APIs, hex, git, documentation, testing, and patience.

Current section

Files

Jump to
pokelixir lib pokelixir_start.ex
Raw

lib/pokelixir_start.ex

defmodule PokelixirStart do
use GenServer
@doc """
start_link/1
Starts the cache tables as part of the supervision tree of the Pokelixir application
"""
def start_link(opts) do
GenServer.start_link(PokelixirCache, opts, [])
end
def init(init_arg) do
PokelixirCache.cache_init()
{:ok, init_arg}
end
end