refactor: rename constants.go to cache_policy.go

This commit is contained in:
2026-06-23 17:09:00 +02:00
committed by Milas Holsting
parent 9a0a6d74bb
commit 7e26f2ee77

View File

@@ -1,8 +1,8 @@
// Package jikan provides a client for the Jikan v4 API.
package jikan
import "time"
// Cache TTLs used by the Jikan client for endpoint responses.
const shortCacheTTL = time.Hour // 1 hour - for frequently changing data
const longCacheTTL = time.Hour * 24 // 24 hours - for stable data like genres
const producerCacheTTL = time.Hour * 24 * 30