privex.helpers.plugin¶
This module handles connection objects for databases, APIs etc. by exposing functions which initialise and store class instances for re-use.
It’s primarily intended to be used to enable database, caching and third-party API connectivity for the helpers in this package, however, you’re free to use the functions / classes / attributes exposed in this module for your own apps.
Classes are generally initialised using the settings from settings
- see the docs for that module to learn
how to override the settings if the defaults don’t work for you.
Copyright:
+===================================================+
| © 2019 Privex Inc. |
| https://www.privex.io |
+===================================================+
| |
| Originally Developed by Privex Inc. |
| License: X11 / MIT |
| |
| Core Developer(s): |
| |
| (+) Chris (@someguy123) [Privex] |
| (+) Kale (@kryogenic) [Privex] |
| |
+===================================================+
Copyright 2019 Privex Inc. ( https://www.privex.io )
Attributes
Functions
|
Remove the per-thread instance storage in |
|
Close the global GeoIP connection and delete the instance. |
|
Close the global Async Memcached connection and delete the instance. |
|
Close the global Redis connection and delete the instance. |
|
Close the global Async Redis connection and delete the instance. |
|
Update global Memcached settings and re-instantiate the global Async Redis instance with the new settings. |
|
Update global Redis settings and re-instantiate the global Redis instance with the new settings. |
|
Update global Redis settings and re-instantiate the global Async Redis instance with the new settings. |
|
|
|
|
|
|
|
|
|
Get a GeoIP Reader object. |
|
Return the full path to the GeoIP2 database for |
|
Get an Async Memcached connection object. |
|
Get a Redis connection object. |
|
Get an Async Redis connection object. |
|
Close the global GeoIP connection, delete the instance, then re-instantiate it |
|
Close the global Async Memcached connection, delete the instance, then re-instantiate it |
|
Close the global Redis connection, delete the instance, then re-instantiate it |
|
Close the global Async Redis connection, delete the instance, then re-instantiate it |