func setupRedisEnv(t *testing.T) *RedisStorage {
	os.Setenv(EnvNameKeyPrefix, TestPrefix)
	os.Setenv(EnvNameRedisDB, "9")
	rd := new(RedisStorage)
	rd.GetConfigValue()
	err := rd.BuildRedisClient()
	if err != nil {
		t.Skip()
		return nil
	}
	assert.NoError(t, err)
	assert.Equal(t, TestPrefix, rd.KeyPrefix)
	assert.Equal(t, 9, rd.DB)
	_, err = rd.Client.FlushAll(rd.ctx).Result()
	assert.NoError(t, err)
	return rd
}
these tests needs a running Redis server
package storageredis
import (
	"context"
	"encoding/json"
	"os"
	"path"
	"sync"
	"testing"
	"github.com/caddyserver/certmagic"
	"github.com/stretchr/testify/assert"
)
const TestPrefix = "redistlstest"