- type APICache
APICache represents an API cache.
func NewAPICache ¶
NewAPICache creates a new API cache
Find finds a URI in the cache and returns true and the data if found. If not found it returns false.
func (*APICache) FindAndMatchScope ¶
FindAndMatchScope finds the rule and returns true only if the scope matches as well. It also returns true of this was a public rule, allowing the callers to decide how to present the data or potentially what to do if authorization fails.
FindRule finds a rule in the APICache without validating scopes