53
logger log.Logger,
54
forceRefresh dynamicconfig.BoolPropertyFn,
56
>
var saCache atomic.Value
57
>
saCache.Store(cache{
58
>
searchAttributes: map[string]NameTypeMap{},
59
>
dbVersion: 0,
60
>
expireOn: time.Time{},
61
>
})
62
>
63
>
return &managerImpl{
64
>
logger: logger,
65
>
timeSource: timeSource,
66
>
cache: saCache,
67
>
clusterMetadataManager: clusterMetadataManager,
68
>
forceRefresh: forceRefresh,
69
>
}
70
>
}
71
72
// GetSearchAttributes returns all search attributes (including system and build-in) for specified index.