Skip to main content

NewRedisRawStore

Creates a RawStore backed by the Redis server configured in cfg.Redis.

def NewRedisRawStore(
_: context.Context,
cfg: *Config,
metrics: *dataStoreMetrics
) - > RawStore, error

Creates a RawStore backed by the Redis server configured in cfg.Redis.

Parameters

NameTypeDescription
_context.ContextThe context for the operation, though it is not directly used in this function.
cfg*ConfigThe configuration object containing Redis connection details such as address, username, password, and database.
metrics*dataStoreMetricsMetrics for the data store, specifically used to initialize copy operation metrics.

Returns

TypeDescription
RawStore, errorA new RawStore instance backed by Redis, or an error if Redis configuration is invalid.