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

Function getUserQuotaCache

model/user_cache.go:155–161  ·  view source on GitHub ↗
(userId int)

Source from the content-addressed store, hash-verified

153}
154
155func getUserQuotaCache(userId int) (int, error) {
156 cache, err := GetUserCache(userId)
157 if err != nil {
158 return 0, err
159 }
160 return cache.Quota, nil
161}
162
163func getUserStatusCache(userId int) (int, error) {
164 cache, err := GetUserCache(userId)

Callers 1

GetUserQuotaFunction · 0.85

Calls 1

GetUserCacheFunction · 0.85

Tested by

no test coverage detected