func (c *CRepeat) Set(userID int64, check string, value interface{}, expiration time.Duration) error {
	return c.cRepeatClient.Set(c.getKey(userID, check), value, expiration)
}
Set record a repeat value
package pkg
import (
	"fmt"
	"time"
	"github.com/go-eagle/eagle/pkg/log"
	"github.com/go-eagle/eagle/pkg/redis"
	"github.com/go-eagle/eagle/pkg/utils"
)
type CRepeat struct {
	cRepeatClient redis.CheckRepeat
}
func NewCRepeat() *CRepeat {
	return &CRepeat{
		cRepeatClient: redis.NewCheckRepeat(redis.RedisClient),
	}
}
func (c *CRepeat) getKey(userID int64, check string) string {
	key, err := utils.Md5(fmt.Sprintf("%d:%s", userID, check))
	if err != nil {
		log.Warnf("md5 string err: %v", err)
	}
	return key
}