close_redis_async¶
-
async
privex.helpers.plugin.
close_redis_async
(thread_id=None, close_all=False) → bool[source]¶ Close the global Async Redis connection and delete the instance.
- Parameters
thread_id – Close and delete the Redis instance for this thread ID, instead of the detected current thread
close_all (bool) – Close all AsyncIO Redis 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 Redis instance.