DataManager.GetFilterIndexes with cacheID and itemIDPrefix, utils.CachePrefixToInstance, utils.PrefixToRevIndexCache

This commit is contained in:
DanB
2018-03-02 18:06:33 +01:00
parent 45f638102d
commit d95c5e85b3
13 changed files with 68 additions and 45 deletions

View File

@@ -78,6 +78,20 @@ var (
CacheAttributeFilterRevIndexes: AttributeFilterRevIndexes,
}
CachePrefixToInstance map[string]string // will be built on init
PrefixToIndexCache = map[string]string{
ThresholdProfilePrefix: CacheThresholdFilterIndexes,
ResourceProfilesPrefix: CacheResourceFilterIndexes,
StatQueueProfilePrefix: CacheStatFilterIndexes,
SupplierProfilePrefix: CacheSupplierFilterIndexes,
AttributeProfilePrefix: CacheAttributeFilterIndexes,
}
PrefixToRevIndexCache = map[string]string{
ThresholdProfilePrefix: CacheThresholdFilterRevIndexes,
ResourceProfilesPrefix: CacheResourceFilterRevIndexes,
StatQueueProfilePrefix: CacheStatFilterRevIndexes,
SupplierProfilePrefix: CacheSupplierFilterRevIndexes,
AttributeProfilePrefix: CacheAttributeFilterRevIndexes,
}
)
const (