MCPcopy Create free account
hub / github.com/QuantumNous/new-api / GetChannelAffinityCacheStats

Function GetChannelAffinityCacheStats

controller/channel_affinity_cache.go:12–19  ·  view source on GitHub ↗
(c *gin.Context)

Source from the content-addressed store, hash-verified

10)
11
12func GetChannelAffinityCacheStats(c *gin.Context) {
13 stats := service.GetChannelAffinityCacheStats()
14 c.JSON(http.StatusOK, gin.H{
15 "success": true,
16 "message": "",
17 "data": stats,
18 })
19}
20
21func ClearChannelAffinityCache(c *gin.Context) {
22 all := strings.TrimSpace(c.Query("all"))

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected