mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-21 15:18:44 +05:00
DataManager.GetFilterIndexes with cacheID and itemIDPrefix, utils.CachePrefixToInstance, utils.PrefixToRevIndexCache
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user