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 with RunMixin and AsyncRunMixin.

Parameters:

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)

client_port() int[source]

Returns the port to be used when connecting to the Redis server from the docker host.

namespace[source]

The namespace of the database