> For the complete documentation index, see [llms.txt](https://cherrycake.tin.cat/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cherrycake.tin.cat/version-0.x/guide/cache-guide/using-cache.md).

# Using cache

Cache providers are available to use through properties in the [Cache](/version-0.x/reference/core-modules/cache.md) module. For example, to set the key `myKey` into the cache provider `fast`, use the [CacheProvider::set ](/version-0.x/reference/core-classes/cacheprovider/cacheprovider-methods.md#set)method, like this:

```php
$value = $e->Cache->fast->set("myKey", "value", \Cherrycake\CACHE_TTL_5_MINUTES);
```

And [CacheProvider::get](/version-0.x/reference/core-classes/cacheprovider/cacheprovider-methods.md#get) to set a value into a cache key:

```php
$value = $e->Cache->fast->get("myKey")
```
