Fix S3 backend cache expiry calculation.

This commit is contained in:
Catherine
2025-09-17 14:19:10 +00:00
parent 48cc4cbcbb
commit ef7aea6a38

View File

@@ -269,7 +269,7 @@ func defaultCacheConfig[K comparable, V any](
options.Weigher = weigher
}
if maxAge != 0 {
options.ExpiryCalculator = otter.ExpiryCreating[K, V](maxAge)
options.ExpiryCalculator = otter.ExpiryWriting[K, V](maxAge)
}
return options, nil
}