Helper functions to get individual fields if needed
(userId int)
| 138 | |
| 139 | // Helper functions to get individual fields if needed |
| 140 | func 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 | |
| 148 | func getUserQuotaCache(userId int) (int, error) { |
| 149 | cache, err := GetUserCache(userId) |
no test coverage detected