summaryrefslogtreecommitdiffstats
path: root/store/local_cache_supplier_roles.go
diff options
context:
space:
mode:
Diffstat (limited to 'store/local_cache_supplier_roles.go')
-rw-r--r--store/local_cache_supplier_roles.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/store/local_cache_supplier_roles.go b/store/local_cache_supplier_roles.go
index 8cbde0a23..7c82f60eb 100644
--- a/store/local_cache_supplier_roles.go
+++ b/store/local_cache_supplier_roles.go
@@ -68,3 +68,10 @@ func (s *LocalCacheSupplier) RoleGetByNames(ctx context.Context, roleNames []str
return result
}
+
+func (s *LocalCacheSupplier) RolePermanentDeleteAll(ctx context.Context, hints ...LayeredStoreHint) *LayeredStoreSupplierResult {
+ defer s.roleCache.Purge()
+ defer s.doClearCacheCluster(s.roleCache)
+
+ return s.Next().RolePermanentDeleteAll(ctx, hints...)
+}