Skip to content

Cache Components

go-zero offers both in-process and distributed caching to reduce database load and improve response times. Caches integrate automatically with database queries generated by goctl model.

  • Memory Cache — In-process LRU cache for hot data
  • Redis Cache — Distributed Redis cache with automatic invalidation