MCPcopy
hub / github.com/apache/casbin / InvalidateCache

Method InvalidateCache

enforcer_cached.go:154–158  ·  view source on GitHub ↗

InvalidateCache deletes all the existing cached decisions.

()

Source from the content-addressed store, hash-verified

152
153// InvalidateCache deletes all the existing cached decisions.
154func (e *CachedEnforcer) InvalidateCache() error {
155 e.locker.Lock()
156 defer e.locker.Unlock()
157 return e.cache.Clear()
158}
159
160func GetCacheKey(params ...interface{}) (string, bool) {
161 key := strings.Builder{}

Callers

nothing calls this directly

Calls 1

ClearMethod · 0.65

Tested by

no test coverage detected