Skip to content

Redis Cache & Rate Limits

  • In-Memory (Default): Zero-dependency cache with automatic TTL eviction and a 100,000-key safety cap.
  • Redis: Set REDIS_URL=redis://:password@127.0.0.1:6379/0 in microbase.conf (or hot-swap in Settings → Database & Cache). Microbase validates PING before switching live.

Configure global and per-route rate limits (e.g. auth login, OTP, file uploads) in Settings → Rate Limits. When Redis is active, counters are shared across all Microbase instances.