work on cache transactions

This commit is contained in:
Radu Ioan Fericean
2014-09-02 20:58:22 +03:00
parent c5fea8ef71
commit fa7b97b5dc
10 changed files with 205 additions and 46 deletions

View File

@@ -31,7 +31,11 @@ var acntDb AccountingStorage
func init() {
cfgDcT, _ = config.NewDefaultCGRConfig()
acntDb, _ = NewMapStorage()
if DEBUG {
acntDb, _ = NewMapStorage()
} else {
acntDb, _ = NewRedisStorage("127.0.0.1:6379", 13, "", utils.MSGPACK)
}
acntDb.CacheAccounting(nil, nil, nil, nil)
}