tickerInfo setToKey
This commit is contained in:
parent
c64bbcc35e
commit
877cb88bec
@ -1,6 +1,7 @@
|
||||
package core
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"reflect"
|
||||
"strconv"
|
||||
@ -68,3 +69,11 @@ func ToFloat64(val interface{}) float64 {
|
||||
}
|
||||
return valf
|
||||
}
|
||||
|
||||
// TODO 有待实现
|
||||
func (ti *TickerInfo) SetToKey(cr *Core) error {
|
||||
js, _ := json.Marshal(*ti)
|
||||
plateName := ti.InstId + "|tickerInfo"
|
||||
_, err := cr.RedisLocalCli.Set(plateName, string(js), 0).Result()
|
||||
return err
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user