How to simplify these code? (like defdelegate but with a constant parameter)

(Unofficial) Style Guide: Avoid Needless Pipelines

def get(cache_key), do: Cachex.get(:app_cache, cache_key) def get!(cache_key), do: Cachex.get!(:app_cache, cache_key) # etc 
7 Likes