func (r *RedisDriver) IsGoKEVModelV1() (bool, error) {
	ctx := context.Background()

	exists, err := r.conn.Exists(ctx, fetchMetaKey).Result()
	if err != nil {
		return false, xerrors.Errorf("Failed to Exists. err: %w", err)
	}
	if exists == 0 {
		keys, _, err := r.conn.Scan(ctx, 0, "KEV#*", 1).Result()
		if err != nil {
			return false, xerrors.Errorf("Failed to Scan. err: %w", err)
		}
		if len(keys) == 0 {
			return false, nil
		}
		return true, nil
	}

	return false, nil
}
// IsGoKEVModelV1 determines if the DB was created at the time of go-kev Model v1
IsGoKEVModelV1 determines if the DB was created at the time of go-kev Model v1
// IsGoKEVModelV1 determines if the DB was created at the time of go - kev Model v1
func (r *RedisDriver) IsGoKEVModelV1() (bool, error) {
	ctx := context.Background()
	exists, err := r.conn.Exists(ctx, fetchMetaKey).Result()
	if err != nil {
		return false, xerrors.Errorf("Failed to Exists. err: %w", err)
	}
	if exists == 0 {
		keys, _, err := r.conn.Scan(ctx, 0, "KEV#*", 1).Result()
		if err != nil {
			return false, xerrors.Errorf("Failed to Scan. err: %w", err)
		}
		if len(keys) == 0 {
			return false, nil
		}
		return true, nil
	}
	return false, nil
}
func ( r * RedisDriver ) IsGoKEVModelV1 ( ) ( bool , error ) { ctx := context . Background ( ) exists , err := r . conn . Exists ( ctx , fetchMetaKey ) . Result ( ) if err != nil { return false , xerrors . Errorf ( " " , err ) } if exists == 0 { keys , _ , err := r . conn . Scan ( ctx , 0 , " " , 1 ) . Result ( ) if err != nil { return false , xerrors . Errorf ( " " , err ) } if len ( keys ) == 0 { return false , nil } return true , nil } return false , nil }
IsGoKEVModelV1 determines if the DB was created at the time of go-kev Model v1
IsGoKEVModelV1 determines if the DB was created at the time of go - kev Model v1