close_geoip¶
-
privex.helpers.plugin.
close_geoip
(geo_type: str, thread_id=None) → bool[source]¶ Close the global GeoIP connection and delete the instance.
- Parameters
geo_type (str) – The GeoIP database type: either ‘city’, ‘asn’ or ‘country’
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.