Redis Cache
High-performance Redis included in all paid plans
Overview
Redis is a high-performance in-memory data store perfect for caching, sessions, and real-time applications. Included free in all paid Chita Cloud plans.
Availability
| Plan | Redis Included | Value |
|---|---|---|
| Free | Not available | - |
| Freelancer Starter | 256MB | €15-25/month value |
| Freelancer Professional | 256MB | €15-25/month value |
| Team Agency | 512MB | €25-35/month value |
Redis is automatically provisioned and ready to use - no extra cost.
Features
- Blazing Fast: Sub-millisecond latency
- Persistent: Optional data persistence
- Pub/Sub: Real-time messaging
- Atomic Operations: Race condition free
- Auto-configured: Connection string provided in dashboard
Configuration
Access your Redis instance from the dashboard:
- Navigate to your service
- Go to "Environment" tab
- Copy the auto-generated
REDIS_URL
Connection string format:
REDIS_URL=redis://your-instance.chitacloud.dev:6379
REDIS_PASSWORD=your-secure-passwordLearn how to manage environment variables securely in your application.
Usage Example
import Redis from 'ioredis';
const redis = new Redis(process.env.REDIS_URL);
// Set and get values
await redis.set('user:123', JSON.stringify({ name: 'John' }));
const user = JSON.parse(await redis.get('user:123'));Best Practices
- Use connection pooling
- Implement proper error handling
- Set appropriate TTL values
- Monitor memory usage