Burrito.Util.FileCache (burrito v1.4.0)

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()}