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, specifically the Redis server address.
metrics*dataStoreMetricsMetrics for data store operations, used to initialize copy-related metrics.

Returns

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