func()

in reference-api/unified_handler.go [142:152]


func (deps *HandlerDeps) storeInCache(key string, statusCode int, value []byte) {
	timestamp := time.Now().Unix() // Store current timestamp

	deps.cache.Add(key, CachedResponse{
		StatusCode: statusCode,
		Body:       value,
		Timestamp:  timestamp,
	})

	log.Printf("Cached response for key: %s, Status: %d (Stored at %d)", key, statusCode, timestamp)
}