CAMB AI Website Translation uses Redis to cache translated text so visitors get instant page loads after the first visit. This guide walks you through creating a free Redis database on Upstash and wiring it up to your Website Configuration.Documentation Index
Fetch the complete documentation index at: https://docs.camb.ai/llms.txt
Use this file to discover all available pages before exploring further.
1. Sign up for Upstash
Navigate to https://upstash.com.


2. Create a new Redis database
From the dashboard, select Redis and then Create Database. Configure the database:- Name β Assign a descriptive name (for example,
project-cache-db). - Region β Select a region close to your application hosting location to minimize latency.
- Plan β Choose the free plan if youβre testing or working on a small project.



3. Access connection details
Once the database is created, youβll see:- The REST API URL
- The REST Token
- The Redis Connection URL β this is what youβll paste into your CAMB AI Website Configuration as the Redis Cache URL (Secure).

4. Clearing the Redis cache
If you need to clear all cached translations from your Redis database, use the Flush functionality.- From the Upstash Console, open your Redis database.
- Navigate to the CLI tab.

- Execute the
FLUSHALLorFLUSHDBcommand.

5. Time-to-Live (TTL) and inactivity
Redis allows you to set a time-to-live (TTL) on keys. The TTL specifies how long a key remains in the cache before being automatically deleted. Key points about TTL behavior:- Expiration β When the TTL for a key reaches zero, Redis automatically deletes it.
- No TTL set β If you donβt set a TTL, the key will persist until explicitly removed.
- Inactivity β Redis does not automatically expire keys due to inactivity unless a TTL has been defined.
6. Monitoring and management
In the Upstash dashboard, you can:- Review memory usage and request metrics by going to the Usage tab.

- Monitor keys and expiration patterns.
- Reset credentials or delete the database when no longer needed.

7. Connect Redis to your Website Configuration
With your Upstash database ready, integrate it into CAMB AI Studio:- Open the Website Configuration form in Studio.

-
Provide the following:
- Name β A friendly name for your project (e.g.,
My Website). - Domain β Your production domain (e.g.,
example.com). - Redis Cache URL (Secure) β The secure
rediss://connection string from your Upstash database. - Translate From β The source language for your websiteβs content.
- Translate To β One or more target languages.
- Name β A friendly name for your project (e.g.,
- Click Create Website. This generates an API key for your project, which your application can use to fetch and cache translations.