diff options
| author | Jordan Cook <jordan.cook@pioneer.com> | 2021-08-25 15:31:05 -0500 |
|---|---|---|
| committer | Jordan Cook <jordan.cook@pioneer.com> | 2021-08-25 17:43:02 -0500 |
| commit | 20af95ca001110cf8df7d732526a3492cceba19f (patch) | |
| tree | 9ca505caa6f8a5e48b7e863b0ea25f419854e67c /requests_cache/backends/mongodb.py | |
| parent | 99282ad0d6df1444e43177cdac07e4af64ca2c84 (diff) | |
| download | requests-cache-20af95ca001110cf8df7d732526a3492cceba19f.tar.gz | |
Minor optimization: exclude redundant CachedResponse.cache_key and CachedHTTPResponse.headers from serialization, and set at runtime instead
Diffstat (limited to 'requests_cache/backends/mongodb.py')
| -rw-r--r-- | requests_cache/backends/mongodb.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/requests_cache/backends/mongodb.py b/requests_cache/backends/mongodb.py index 2924f52..07a91ab 100644 --- a/requests_cache/backends/mongodb.py +++ b/requests_cache/backends/mongodb.py @@ -3,12 +3,13 @@ ../_static/mongodb.png `MongoDB <https://www.mongodb.com>`_ is a NoSQL document database. It stores data in collections -of documents, which are more flexible and less strictly structured than a relational database. +of documents, which are more flexible and less strictly structured than tables in a relational +database. Connection Options ^^^^^^^^^^^^^^^^^^ -The MongoDB backend accepts any keyword arguments for :py:class:`pymongo.mongo_client.MongoClient`. These can be passed -via :py:class:`.CachedSession`: +The MongoDB backend accepts any keyword arguments for :py:class:`pymongo.mongo_client.MongoClient`. +These can be passed via :py:class:`.CachedSession`: >>> session = CachedSession('http_cache', backend='mongodb', host='192.168.1.63', port=27017) |
