func (r *VariantRepository) FindByID(ctx context.Context, flagIDHex, idHex string) (*flaggio.Variant, error) {
	span, ctx := opentracing.StartSpanFromContext(ctx, "RedisVariantRepository.FindByID")
	defer span.Finish()
	return r.store.FindByID(ctx, flagIDHex, idHex)
}
FindByID returns a variant that has a given ID.
package redis
import (
	"context"
	"time"
	"github.com/go-redis/redis/v7"
	"github.com/opentracing/opentracing-go"
	"github.com/victorkt/flaggio/internal/flaggio"
	"github.com/victorkt/flaggio/internal/repository"
)
var _ repository.Variant = (*VariantRepository)(nil)
type VariantRepository struct {
	redis     *redis.Client
	store     repository.Variant
	flagStore repository.Flag
	ttl       time.Duration
}