> For the complete documentation index, see [llms.txt](https://chsakell.gitbook.io/harmony/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://chsakell.gitbook.io/harmony/configuration/dependencies/caching.md).

# Caching

Caching dramatically improves application's performance

There are two types of caching available, ***InMemory*** & ***Redis***.

* In memory caching is used by default
* Redis should be used instead in production environments where multiple instances of the same application might exist.

### Configuration

Configure the **CacheProvider** *appsettings.json* property as follow:

* **In Memory Caching**: *InMemory* or  empty string or non existing property:
* **Redis Caching**: Redis

**Examples**

```
"CacheProvider": "InMemory"
```

```
"CacheProvider": "Redis",
"RedisConnectionString": "127.0.0.1:6379"
```

#### Notes

* With Redis caching, you also need to configure the **RedisConnectionString** property
* Configure the caching for <mark style="color:blue;">Harmony.Api</mark> & <mark style="color:blue;">Harmony.Automations</mark> projects
