Documentation
Redlite Cloud is a Redis-compatible cache service powered by SQLite. Connect using your existing Redis clients or the HTTP API.
#Quickstart
Get your first cache running in under a minute.
1. Create an account
Sign up for a free account. You'll get 1 cache with 50MB storage and 5MB page cache.
2. Create a cache
From the dashboard, click "Create Cache" to create a new cache instance.
3. Get your connection token
Click on your cache to view connection details. Generate a connection token.
4. Connect
Use the HTTP API or any Redis client:
curl -X POST https://redlite-engine.fly.dev/v1/redis \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"command": ["SET", "key", "value"]}'import redis
client = redis.Redis(
host="redlite-engine.fly.dev",
port=443,
password="YOUR_TOKEN",
ssl=True
)
client.set("hello", "world")
print(client.get("hello")) # b'world'import Redis from 'ioredis';
const client = new Redis({
host: 'redlite-engine.fly.dev',
port: 443,
password: 'YOUR_TOKEN',
tls: {}
});
await client.set('hello', 'world');
console.log(await client.get('hello')); // 'world'#Authentication
Redlite uses JWT tokens for authentication. Each token is bound to a specific cache and engine, preventing token reuse across different environments.
API Key Authentication
Your API key is used to manage caches and generate connection tokens. Include it in the X-API-Key header:
curl https://redlite-engine.fly.dev/users/me/caches \
-H "X-API-Key: YOUR_API_KEY"Connection Token Authentication
Connection tokens are used for cache operations. Use as a Bearer token or Redis password:
# HTTP API
curl -X POST https://redlite-engine.fly.dev/v1/redis \
-H "Authorization: Bearer YOUR_CONNECTION_TOKEN"
# Redis CLI
redis-cli -h redlite-engine.fly.dev -a YOUR_CONNECTION_TOKEN#HTTP API
The HTTP API is perfect for serverless functions and edge deployments. Execute Redis commands over HTTPS.
Single Command
POST /v1/redis
Content-Type: application/json
Authorization: Bearer YOUR_TOKEN
{
"command": ["SET", "user:1", "alice"]
}
Response:
{
"result": "OK"
}Pipeline (Multiple Commands)
POST /v1/redis/pipeline
Content-Type: application/json
Authorization: Bearer YOUR_TOKEN
{
"commands": [
["SET", "key1", "value1"],
["SET", "key2", "value2"],
["GET", "key1"]
]
}
Response:
{
"results": ["OK", "OK", "value1"]
}#Redis Protocol
Connect using standard Redis clients over TLS on port 443. Use your connection token as the password.
Connection String
rediss://:YOUR_TOKEN@redlite-engine.fly.dev:443Redis CLI
redis-cli -h redlite-engine.fly.dev -p 443 --tls -a YOUR_TOKEN#Supported Commands
Redlite supports 50+ Redis commands across all major data types.
STRINGS
HASHES
LISTS
SETS
KEYS
JSON
#Client Libraries
Use any standard Redis client. Here are examples for popular languages.
Python (redis-py)
pip install redis
import redis
client = redis.Redis(
host="redlite-engine.fly.dev",
port=443,
password="YOUR_TOKEN",
ssl=True,
decode_responses=True
)Node.js (ioredis)
npm install ioredis
import Redis from 'ioredis';
const client = new Redis({
host: 'redlite-engine.fly.dev',
port: 443,
password: 'YOUR_TOKEN',
tls: {}
});Go (go-redis)
go get github.com/redis/go-redis/v9
import "github.com/redis/go-redis/v9"
client := redis.NewClient(&redis.Options{
Addr: "redlite-engine.fly.dev:443",
Password: "YOUR_TOKEN",
TLSConfig: &tls.Config{},
})Rust (redis-rs)
[dependencies]
redis = { version = "0.25", features = ["tls-native-tls"] }
let client = redis::Client::open(
"rediss://:YOUR_TOKEN@redlite-engine.fly.dev:443"
)?;#Limits
Plan limits are based on storage and page cache size.
| Plan | Caches | Storage | Page Cache | Price |
|---|---|---|---|---|
| Free | 1 | 50 MB | 5 MB | $0/mo |
| Pro | 20 | 10 GB | 256 MB | $19/mo |
| Business | 100 | 100 GB | 1 GB | $99/mo |
| Enterprise | Unlimited | Custom | Custom | Custom |
Additional usage: Storage at $1/GB/mo, Page Cache at $10/GB/mo.
Questions? Contact us at hello@redlite.dev