go-service

💾 Cache

← Back to README

Cache configuration is defined in cache/config.Config:

cache:
  kind: redis
  compressor: zstd
  encoder: json
  max_size: 4MB
  max_entries: 1024
  options:
    url: env:CACHE_URL

[!NOTE]

[!WARNING] Cache.Flush follows backend semantics; for Redis it clears the selected database.