Helper functions to get individual fields if needed
(userId int)
| 145 | |
| 146 | // Helper functions to get individual fields if needed |
| 147 | func 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 | |
| 155 | func getUserQuotaCache(userId int) (int, error) { |
| 156 | cache, err := GetUserCache(userId) |
no test coverage detected