> ## Documentation Index
> Fetch the complete documentation index at: https://docs.arjex.team/llms.txt
> Use this file to discover all available pages before exploring further.

# Storage and queue

> Set local cache behavior, media concurrency, and per-bot queue capacity.

| Key | Default | Notes |
| - | -: | - |
| `storage.directory` | `storage` | Changing it migrates cached files. |
| `storage.maxSizeMb` | 300 | Hard limit; refuse a track that cannot fit. |
| `storage.maxAgeDays` | 14 | Clean unused tracks older than this. |
| `storage.autoDelete` | `true` | Delete played tracks automatically. |
| `storage.clearOnStartup` | `false` | Clear the cache on startup. |
| `storage.ffmpegLocation` | `""` | Custom FFmpeg folder; empty uses bundled binary or PATH. |
| `storage.mediaConcurrency` | `max(2, cores / 2)` | Media child processes across all bots; set a whole number to override. |
| `storage.mediaQueueLimit` | `mediaConcurrency * 8` | Waiting media jobs before new requests are refused. |
| `queue.maxLength` | 1000 | Upcoming tracks per bot. Beyond this, additions stop and the room is notified once. |

At capacity, the oldest unused tracks are evicted first. Tracks in use are protected. If nothing can be freed, local downloads are refused with a clear message. Lowering the queue limit does not remove queued tracks.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.