InvalidateCache deletes all the existing cached decisions.
()
| 146 | |
| 147 | // InvalidateCache deletes all the existing cached decisions. |
| 148 | func (e *SyncedCachedEnforcer) InvalidateCache() error { |
| 149 | return e.cache.Clear() |
| 150 | } |
| 151 | |
| 152 | func (e *SyncedCachedEnforcer) checkOneAndRemoveCache(params ...interface{}) (bool, error) { |
| 153 | if atomic.LoadInt32(&e.enableCache) != 0 { |