close_memcached_async

async privex.helpers.plugin.close_memcached_async(thread_id=None, close_all=False)bool[source]

Close the global Async Memcached connection and delete the instance.

Parameters
  • thread_id – Close and delete the Memcached instance for this thread ID, instead of the detected current thread

  • close_all (bool) – Close all AsyncIO Memcached instances for every thread ID, then purge their thread store keys.

Return bool deleted

True if an instance was found and deleted. False if there was no existing Memcached instance.