CacheDecorator is an Elixir library that provides an easy way to add caching behavior to your module functions through compile-time decorators. By using @cache and @invalidate attributes, you can automatically cache function results and invalidate cache entries with minimal boilerplate.
Add the dependency to your mix.exs:
def deps do
[
{:cache_decorator, "~> 0.2.0"}
]
endSee documentation for usage examples
This project is licensed under the MIT License.