inverted_index.go 345 B

12345678910111213141516
  1. package dao
  2. import (
  3. "context"
  4. recall "go-common/app/service/bbq/recsys-recall/api/grpc/v1"
  5. )
  6. // SetInvertedIndex 倒排写入redis
  7. func (d *Dao) SetInvertedIndex(c context.Context, key string, svids []int64) error {
  8. _, err := d.recallClient.NewIncomeVideo(c, &recall.NewIncomeVideoRequest{
  9. Key: key,
  10. SVIDs: svids,
  11. })
  12. return err
  13. }