Merge branch 'main' into add-withcontext

* main: (168 commits)
  chore: read redis image for ruedis
  chore: align ruedis expiration test with redis
  chore: skip cluster tests
  chore: align valkey expiration test with redis
  chore: refine message
  fix: reuse valkey container in benchmarks
  chore: pass the redis-like image explicitly in tests
  fix: missing eval of redis image from env var
  chore: proper parallel layout
  chore: add integration tests to the redis helper module
  chore: verify mtls properly in tests
  chore(deps): bump github.com/aws/aws-sdk-go-v2/feature/s3/manager in /s3
  chore(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 in /s3
  chore(deps): bump github.com/ClickHouse/clickhouse-go/v2 in /clickhouse
  chore(deps): bump github.com/minio/minio-go/v7 in /minio
  chore(deps): bump github.com/valkey-io/valkey-go in /valkey
  chore(deps): bump github.com/jackc/pgx/v5 in /postgres
  chore: add tests for the helper module
  chore: make sure the client gets the variable locally
  fix(coherence): set coherence log level to ERROR in benchmarks
  ...
This commit is contained in:
Manuel de la Peña
2025-05-23 12:53:15 +02:00
85 changed files with 5653 additions and 1139 deletions

View File

@@ -13,6 +13,13 @@ type Storage struct {
db redis.UniversalClient
}
// NewFromConnection creates a new instance of Storage using the provided Redis universal client.
func NewFromConnection(conn redis.UniversalClient) *Storage {
return &Storage{
db: conn,
}
}
// New creates a new Redis storage instance.
func New(config ...Config) *Storage {
// Set default config