Burrito.Util.FileCache (burrito v1.5.0)

View Source

Summary

Functions

clear_cache()

@spec clear_cache() :: :ok | {:error, term()}

fetch(key)

@spec fetch(binary()) :: {:hit, binary()} | {:error, term()} | :miss

put_if_not_exist(key, data)

@spec put_if_not_exist(binary(), binary()) :: :ok | {:error, term()}