harp_apps.storage.settings.redis

Inheritance diagram of harp_apps.storage.settings.redis

class RedisSettings[source]

Bases: Service

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'extra': 'allow'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[Dict[str, FieldInfo]] = {'arguments': FieldInfo(annotation=Union[dict, NoneType], required=False, default_factory=dict, description='Arguments for the service constructor.'), 'base': FieldInfo(annotation=Union[str, NoneType], required=False, default=None, description='Base type for service definition.'), 'constructor': FieldInfo(annotation=Union[str, NoneType], required=False, default=None, description='Optional custom constructor for the service.'), 'type': FieldInfo(annotation=Union[str, NoneType], required=False, default=None, description='Type for service definition.'), 'url': FieldInfo(annotation=Url, required=False, default=Url('redis://localhost:6379/0'), metadata=[UrlConstraints(max_length=None, allowed_schemes=['redis', 'rediss'], host_required=None, default_host='localhost', default_port=6379, default_path='/0')])}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.

This replaces Model.__fields__ from Pydantic V1.

url: UrlConstraints(max_length=None, allowed_schemes=['redis', 'rediss'], host_required=None, default_host=localhost, default_port=6379, default_path=/0)]