# `mix nbx.gen.cache`
[🔗](https://github.com/elixir-nebulex/nebulex/blob/v3.1.0/lib/mix/tasks/nbx.gen.cache.ex#L1)

Generates a new cache.

The cache module is placed in the `lib` directory and uses
`Nebulex.Adapters.Local`. The task also adds a config entry for it to
`config/config.exs` (or the project's `:config_path`), creating the file
if needed.

## Examples

    $ mix nbx.gen.cache -c MyApp.Cache

## Command line options

  * `-c`, `--cache` - The cache to generate.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
