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

# Cache

> Cache services like Redis require prioritized memory and an eviction policy to ensure low-latency data retrieval in production.

## Memory allocation

| Parameter | Recommended | Description |
| - | - | - |
| **Memory** | `1 GB` | Dedicated RAM for the caching layer. |
| **Eviction Policy** | `allkeys-lru` | How the cache handles memory pressure. |

## Configuration

```yaml revolte.yaml theme={"dark"}
revolte:
  version: "1.0"
  project: Demo-Project
  appName: "demo-app"
  env:
    production:
      branch: main
      services:
        rid_4:
          type: CACHE
          name: cache
          specifications:
            cpu: 2
            memory: 0.5
```

## Related

* [Web Service](/yaml/environment-settings/resource-specifications/web-service)
* [Database](/yaml/environment-settings/resource-specifications/database)

## Next steps

* [Manage Variables & Secrets](/yaml/environment-settings/resource-specifications/variables)
* [Set up Storage Buckets](/yaml/environment-settings/resource-specifications/storage-bucket)
* [Sync your Changes](/yaml/syncing)


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