- class MemcachedContainer(image='memcached:1', port_to_expose=11211, **kwargs)ΒΆ
Test container for Memcached. The example below spins up a Memcached server
Example
>>> from testcontainers.memcached import MemcachedContainer >>> with MemcachedContainer() as memcached_container: ... host, port = memcached_container.get_host_and_port()