# CacheProvider

## Subclasses

* **`CacheProviderApcu`** Provides connection to the [Alternative PHP Cache](https://www.php.net/manual/en/book.apc.php), which is easily available as a PHP module and provides high speed, shared memory based caching suited for scenarios without complex cache or shared memory requirements and that won't use big amounts of memory.
* **`CacheProviderMemcached`** Provides connection to a [Memcached](https://www.memcached.org/) server, which provides high performance caching and shared memory capabilities without the need of advanced shared memory tools, suited for scenarios where big amounts of memory will be used, even with distributed server structures.
* **`CacheProviderRedis`** Provides connection to a [Redis](https://redis.io/) server, which provides high performance caching and shared memory capabilities while also providing advanced shared memory mechanisms like lists, queues and pools. Also supports distributed server architectures.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cherrycake.tin.cat/reference/core-classes/cacheprovider.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
