extras.aerospike — Aerospike Database Service¶
A YellowService for running Aerospike DB. Runs the official Aerospike docker image.
Note
Requires the aerospike extra. For more information, see our installation guide.
- class extras.aerospike.AerospikeService(docker_client: DockerClient, image='aerospike:ce-5.7.0.8', *, container_create_kwargs: dict[str, Any] | None = None, **kwargs)[source]¶
A service to run the aerospike database. Inherits from
SingleContainerService. Usable withRunMixinandAsyncRunMixin.- Parameters:
docker_client – The docker client to used to pull and create the container.
image – The image name to create a container of.
container_create_kwargs – Additional keyword arguments passed to
docker.models.containers.ContainerCollection.create().**kwargs – Additional keyword arguments passed to
SingleContainerService.
Has the following additional methods:
- client(config=...) ContextManager[Client][source]¶
Returns context manager to a connected aerospike client.
- Parameters:
config – if provided, additional configuration to set to the client (not including the “hosts” config)