Get/Set AccountActions mapping in storage, renamed OnlineStor interface into DataDB, populate APIer cache methods with AcccountActionPlans

This commit is contained in:
DanB
2017-01-06 20:12:07 +01:00
parent 0eb29c826b
commit 5f4be49131
8 changed files with 157 additions and 4 deletions

View File

@@ -152,6 +152,11 @@ func newLruStore() lrustore {
} else {
c[utils.ACTION_PLAN_PREFIX], _ = lru.New(10000)
}
if cfg != nil && cfg.AccountActionPlans != nil {
c[utils.AccountActionPlansPrefix], _ = lru.New(cfg.AccountActionPlans.Limit)
} else {
c[utils.AccountActionPlansPrefix], _ = lru.New(10000)
}
if cfg != nil && cfg.ActionTriggers != nil {
c[utils.ACTION_TRIGGER_PREFIX], _ = lru.New(cfg.ActionTriggers.Limit)
} else {