file_cache v0.2.0 FileCache

Simple library to load your data from and into a fs-based cache

Link to this section Summary

Functions

removes the whole cache directory

loads some data by id

removes the cache by id

stores some data by id

Link to this section Functions

Link to this function clear()
clear() :: {:ok, list()}

removes the whole cache directory

Link to this function load(id)
load(atom()) :: term() | nil

loads some data by id

Link to this function remove(id)
remove(atom()) :: :ok | {:error, atom()}

removes the cache by id

Link to this function store(id, data)
store(atom(), term()) :: :ok

stores some data by id