Skip to main content

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.

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.

1. Sign up for Upstash

Navigate to https://upstash.com.
Upstash landing page
Create an account using GitHub, Google, or email.
Upstash login page
After signing in, you’ll be directed to the Upstash Console.
Upstash Console dashboard

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.
Create Database form
Plan selection screen
Click Create. After a few seconds, your database will be available.
Redis database dashboard

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).
Redis database connection details panel
Make sure the Redis Connection URL you copy starts with rediss:// (note the double s). This is the TLS-encrypted endpoint required by the Website Translator.

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.
Upstash CLI tab
  • Execute the FLUSHALL or FLUSHDB command.
Running FLUSHDB in the Upstash CLI

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.
Usage tab showing memory and request metrics
  • Monitor keys and expiration patterns.
  • Reset credentials or delete the database when no longer needed.
Credentials management panel

7. Connect Redis to your Website Configuration

With your Upstash database ready, integrate it into CAMB AI Studio:
  1. Open the Website Configuration form in Studio.
Website Translation configuration form
  1. 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.
  2. Click Create Website. This generates an API key for your project, which your application can use to fetch and cache translations.
Next, see Next.js (Page Router) to drop the script into your app.