summaryrefslogtreecommitdiffstats
path: root/store/local_cache_supplier_schemes.go
diff options
context:
space:
mode:
authorGeorge Goldberg <george@gberg.me>2018-05-17 16:28:14 +0100
committerGitHub <noreply@github.com>2018-05-17 16:28:14 +0100
commita09dc68e1d99394f5d636284e0580dd17b2773b3 (patch)
tree83292b4af174445cde44309928d2ebf90d184910 /store/local_cache_supplier_schemes.go
parentd61f13d9b47efbbfb220b1ea33623372c4f6d1ae (diff)
downloadchat-a09dc68e1d99394f5d636284e0580dd17b2773b3.tar.gz
chat-a09dc68e1d99394f5d636284e0580dd17b2773b3.tar.bz2
chat-a09dc68e1d99394f5d636284e0580dd17b2773b3.zip
MM-10235: Make permissions reset CLI shcemes-aware. (#8773)
* MM-10235: Make permissions reset CLI shcemes-aware. * Add i18n strings.
Diffstat (limited to 'store/local_cache_supplier_schemes.go')
-rw-r--r--store/local_cache_supplier_schemes.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/store/local_cache_supplier_schemes.go b/store/local_cache_supplier_schemes.go
index 809c60510..b6cde0fc4 100644
--- a/store/local_cache_supplier_schemes.go
+++ b/store/local_cache_supplier_schemes.go
@@ -46,3 +46,9 @@ func (s *LocalCacheSupplier) SchemeDelete(ctx context.Context, schemeId string,
func (s *LocalCacheSupplier) SchemeGetAllPage(ctx context.Context, scope string, offset int, limit int, hints ...LayeredStoreHint) *LayeredStoreSupplierResult {
return s.Next().SchemeGetAllPage(ctx, scope, offset, limit, hints...)
}
+
+func (s *LocalCacheSupplier) SchemePermanentDeleteAll(ctx context.Context, hints ...LayeredStoreHint) *LayeredStoreSupplierResult {
+ defer s.doClearCacheCluster(s.schemeCache)
+
+ return s.Next().SchemePermanentDeleteAll(ctx, hints...)
+}