def client( ignite_host, ignite_port, timeout, use_ssl, ssl_keyfile, ssl_certfile, ssl_ca_certfile, ssl_cert_reqs, ssl_ciphers, ssl_version, username, password, ): client = Client( timeout=timeout, use_ssl=use_ssl, ssl_keyfile=ssl_keyfile, ssl_certfile=ssl_certfile, ssl_ca_certfile=ssl_ca_certfile, ssl_cert_reqs=ssl_cert_reqs, ssl_ciphers=ssl_ciphers, ssl_version=ssl_version, username=username, password=password, ) client.connect(ignite_host, ignite_port) yield client for cache_name in cache_get_names(client).value: cache_destroy(client, cache_name) client.close()
def client( ignite_host, ignite_port, timeout, use_ssl, ssl_keyfile, ssl_certfile, ssl_ca_certfile, ssl_cert_reqs, ssl_ciphers, ssl_version, username, password, ): client = Client( timeout=timeout, use_ssl=use_ssl, ssl_keyfile=ssl_keyfile, ssl_certfile=ssl_certfile, ssl_ca_certfile=ssl_ca_certfile, ssl_cert_reqs=ssl_cert_reqs, ssl_ciphers=ssl_ciphers, ssl_version=ssl_version, username=username, password=password, ) client.connect(ignite_host, ignite_port) yield client for cache_name in cache_get_names(client).value: cache_destroy(client, cache_name) client.close()
def cache(client): cache_name = 'my_bucket' cache_create(client, cache_name) yield cache_name cache_destroy(client, cache_name)
def cache(client): cache_name = 'my_bucket' cache_create(client, cache_name) yield cache_name cache_destroy(client, cache_name)