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 such as address, username, password, and database. |
| metrics | *dataStoreMetrics | Metrics for the data store, specifically used to initialize copy operation metrics. |
Returns
| Type | Description |
|---|---|
RawStore, error | A new RawStore instance backed by Redis, or an error if Redis configuration is invalid. |