diff --git a/engine/storage_redis.go b/engine/storage_redis.go index 5793c1afb..2395ae7d9 100644 --- a/engine/storage_redis.go +++ b/engine/storage_redis.go @@ -270,7 +270,7 @@ func (rs *RedisStorage) cacheRating(dKeys, rpKeys, rpfKeys, lcrKeys, dcsKeys, ac } if aplKeys == nil { utils.Logger.Info("Caching all action plans") - if aplKeys, err = rs.db.Keys(utils.ACTION_PLAN_PREFIX + "*"); err != nil { + if aplKeys, err = rs.db.Cmd("KEYS", utils.ACTION_PLAN_PREFIX+"*").List(); err != nil { cache2go.RollbackTransaction() return err }