MCPcopy Index your code
hub / github.com/apache/casbin / getKey

Method getKey

enforcer_cached.go:149–151  ·  view source on GitHub ↗
(params ...interface{})

Source from the content-addressed store, hash-verified

147}
148
149func (e *CachedEnforcer) getKey(params ...interface{}) (string, bool) {
150 return GetCacheKey(params...)
151}
152
153// InvalidateCache deletes all the existing cached decisions.
154func (e *CachedEnforcer) InvalidateCache() error {

Callers 3

EnforceMethod · 0.95
RemovePolicyMethod · 0.95
RemovePoliciesMethod · 0.95

Calls 1

GetCacheKeyFunction · 0.85

Tested by

no test coverage detected