summaryrefslogtreecommitdiffstats
path: root/store/local_cache_supplier_schemes.go
diff options
context:
space:
mode:
authorGeorge Goldberg <george@gberg.me>2018-06-21 12:02:35 +0100
committerGitHub <noreply@github.com>2018-06-21 12:02:35 +0100
commit1f65f0e3d6d142b859f8dda52da99cb3d4a01c9c (patch)
tree57c552d90a67dc0e5a97efeb6e9f265ddecdfa4e /store/local_cache_supplier_schemes.go
parent8e24dd78fb868cb01dd626bca3e3d756b67fddc8 (diff)
downloadchat-1f65f0e3d6d142b859f8dda52da99cb3d4a01c9c.tar.gz
chat-1f65f0e3d6d142b859f8dda52da99cb3d4a01c9c.tar.bz2
chat-1f65f0e3d6d142b859f8dda52da99cb3d4a01c9c.zip
MM-10233: Add scheme importing to bulk importer. (#8928)
Diffstat (limited to 'store/local_cache_supplier_schemes.go')
-rw-r--r--store/local_cache_supplier_schemes.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/store/local_cache_supplier_schemes.go b/store/local_cache_supplier_schemes.go
index b6cde0fc4..2f201c17b 100644
--- a/store/local_cache_supplier_schemes.go
+++ b/store/local_cache_supplier_schemes.go
@@ -36,6 +36,10 @@ func (s *LocalCacheSupplier) SchemeGet(ctx context.Context, schemeId string, hin
return result
}
+func (s *LocalCacheSupplier) SchemeGetByName(ctx context.Context, schemeName string, hints ...LayeredStoreHint) *LayeredStoreSupplierResult {
+ return s.Next().SchemeGetByName(ctx, schemeName, hints...)
+}
+
func (s *LocalCacheSupplier) SchemeDelete(ctx context.Context, schemeId string, hints ...LayeredStoreHint) *LayeredStoreSupplierResult {
defer s.doInvalidateCacheCluster(s.schemeCache, schemeId)
defer s.doClearCacheCluster(s.roleCache)