github.com/rajatvaryani/mattermost-server@v5.11.1+incompatible/store/layered_store_hints.go (about)

     1  // Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
     2  // See License.txt for license information.
     3  
     4  package store
     5  
     6  type LayeredStoreHint int
     7  
     8  const (
     9  	LSH_NO_CACHE LayeredStoreHint = iota
    10  	LSH_MASTER_ONLY
    11  )
    12  
    13  func hintsContains(hints []LayeredStoreHint, contains LayeredStoreHint) bool {
    14  	for _, hint := range hints {
    15  		if hint == contains {
    16  			return true
    17  		}
    18  	}
    19  	return false
    20  }