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
| Name | Type | Description |
|---|---|---|
| _ | context.Context | The context for the operation, though it is not directly used in this function. |
| cfg | *Config | The configuration object containing Redis connection details, specifically the Redis server address. |
| metrics | *dataStoreMetrics | Metrics for data store operations, used to initialize copy-related metrics. |
Returns
| Type | Description |
|---|---|
RawStore, error | A new RawStore instance backed by Redis, or an error if Redis configuration is invalid. |