MCPcopy Create free account
hub / github.com/cortexproject/cortex / getCachedRules

Method getCachedRules

pkg/ruler/manager.go:391–396  ·  view source on GitHub ↗
(userID string)

Source from the content-addressed store, hash-verified

389}
390
391func (r *DefaultMultiTenantManager) getCachedRules(userID string) ([]*promRules.Group, bool) {
392 r.ruleCacheMtx.RLock()
393 defer r.ruleCacheMtx.RUnlock()
394 groups, exists := r.ruleCache[userID]
395 return groups, exists
396}
397
398func (r *DefaultMultiTenantManager) GetRules(userID string) []*promRules.Group {
399 var groups []*promRules.Group

Callers 1

GetRulesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected