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

Function getUserGroupCache

model/user_cache.go:147–153  ·  view source on GitHub ↗

Helper functions to get individual fields if needed

(userId int)

Source from the content-addressed store, hash-verified

145
146// Helper functions to get individual fields if needed
147func getUserGroupCache(userId int) (string, error) {
148 cache, err := GetUserCache(userId)
149 if err != nil {
150 return "", err
151 }
152 return cache.Group, nil
153}
154
155func getUserQuotaCache(userId int) (int, error) {
156 cache, err := GetUserCache(userId)

Callers 1

GetUserGroupFunction · 0.85

Calls 1

GetUserCacheFunction · 0.85

Tested by

no test coverage detected