//ZAdd use ZADD to add evt to key with score
ZAdd use ZADD to add evt to key with score
// ZAdd use ZADD to add evt to key with score
func (s *ClientSimple) ZAdd(ctx context.Context, key string, score float64, evt interface{}) error {
	v, e := redis.Int64(s.getConn().Do("ZADD", key, score, evt))
	if nil != e {
		return e
	}
	if v == 0 {
		return fmt.Errorf("add event failed key: %s,evt: %s", key, evt)
	}
	return nil
}
func ( s * ClientSimple ) ZAdd ( ctx context . Context , key string , score float64 , evt interface { } ) error { v , e := redis . Int64 ( s . getConn ( ) . Do ( " " , key , score , evt ) ) if nil != e { return e } if v == 0 { return fmt . Errorf ( " " , key , evt ) } return nil }
ZAdd use ZADD to add evt to key with score
ZAdd use ZADD to add evt to key with score