MCPcopy
hub / github.com/QuantumNous/new-api / shouldUpdateRedis

Function shouldUpdateRedis

model/utils.go:125–127  ·  view source on GitHub ↗
(fromDB bool, err error)

Source from the content-addressed store, hash-verified

123}
124
125func shouldUpdateRedis(fromDB bool, err error) bool {
126 return common.RedisEnabled && fromDB && err == nil
127}

Callers 10

GetUserCacheFunction · 0.85
GetUserQuotaFunction · 0.85
GetUserGroupFunction · 0.85
GetUserSettingFunction · 0.85
GetUsernameByIdFunction · 0.85
GetTokenByIdFunction · 0.85
GetTokenByKeyFunction · 0.85
UpdateMethod · 0.85
SelectUpdateMethod · 0.85
DeleteMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected