mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
21 lines
392 B
Go
21 lines
392 B
Go
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
|
|
// See License.txt for license information.
|
|
|
|
package store
|
|
|
|
type LayeredStoreHint int
|
|
|
|
const (
|
|
LSH_NO_CACHE LayeredStoreHint = iota
|
|
LSH_MASTER_ONLY
|
|
)
|
|
|
|
func hintsContains(hints []LayeredStoreHint, contains LayeredStoreHint) bool {
|
|
for _, hint := range hints {
|
|
if hint == contains {
|
|
return true
|
|
}
|
|
}
|
|
return false
|
|
}
|