> 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/reference/core-modules/stats.md).

# Stats

> See the [Stats guide](/guide/stats-guide.md) to learn how to work with the Stats module.

## Configuration

* **`cacheProviderName`** The name of the cache provider to use. Default: `engine`.
* **`databaseProviderName`** The name of the database provider to use. Default: `main`.
* **`cacheKeyUniqueId`** The unique cache key to use when storing stats event into cache. Default: `QueuedSystemLogEvents`.
* **`isQueueInCache`** Whether to store stats events in a buffer using cache for improved performance instead of storing them in the database straightaway. Default: `true`.
