MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / getUserGroupCache

Function getUserGroupCache

model/user_cache.go:140–146  ·  view source on GitHub ↗

Helper functions to get individual fields if needed

(userId int)

Source from the content-addressed store, hash-verified

138
139// Helper functions to get individual fields if needed
140func getUserGroupCache(userId int) (string, error) {
141 cache, err := GetUserCache(userId)
142 if err != nil {
143 return "", err
144 }
145 return cache.Group, nil
146}
147
148func getUserQuotaCache(userId int) (int, error) {
149 cache, err := GetUserCache(userId)

Callers 1

GetUserGroupFunction · 0.85

Calls 1

GetUserCacheFunction · 0.85

Tested by

no test coverage detected