# FreeCAD Cache Sistemi - FikoYT

## 💾 Cache Mekanizması

**Redis tabanlı:**
- **Worker sharing:** 4 process arasında
- **File sharing:** /tmp/freecad_cache
- **TTL:** 1 saat otomatik temizlik

## 🔄 Cache Akışı

```python
# 1. Analiz et
result = analyze_step(file)
file_id = generate_id()

# 2. Cache'e yaz
redis.setex(f"file:{file_id}", 3600, result)

# 3. Render al
cached = redis.get(f"file:{file_id}")
if cached:
    return cached
```

## 📊 Cache Özellikleri

- **Type:** Redis in-memory
- **Format:** Binary blob
- **Compression:** gzip
- **Expiration:** 3600s

## ⚡ Performans

- **First render:** Normal süre
- **Cached render:** ~100ms
- **Memory:** Otomatik yönetim
- **Cleanup:** Background task

---
2025-11-06