close_redis¶
-
privex.helpers.plugin.
close_redis
(thread_id=None) → bool[source]¶ Close the global 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
- Return bool deleted
True
if an instance was found and deleted.False
if there was no existing Redis instance.