Skip to content
This repository has been archived by the owner on Aug 27, 2023. It is now read-only.

Commit

Permalink
Address #249: add documentation about DynamoDB cache refresh behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc committed Jun 14, 2020
1 parent 84e5b7a commit 44da3f0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/ref/pypicloud.storage.azure_blob.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pypicloud.storage.azure_blob module
===================================
pypicloud.storage.azure\_blob module
====================================

.. automodule:: pypicloud.storage.azure_blob
:members:
Expand Down
1 change: 1 addition & 0 deletions doc/ref/pypicloud.storage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Submodules
.. toctree::
:maxdepth: 4

pypicloud.storage.azure_blob
pypicloud.storage.base
pypicloud.storage.files
pypicloud.storage.gcs
Expand Down
15 changes: 15 additions & 0 deletions doc/topics/cache.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,21 @@ Set ``pypi.db = dynamo`` OR ``pypi.db = pypicloud.cache.dynamo.DynamoCache``
install the necessary DynamoDB libraries. Also, be sure you have set the
correct :ref:`dynamodb_policy`.

.. note::

Pypicloud will create the DynamoDB tables if none exist. By default the
tables will be named ``pypicloud-DynamoPackage`` and
``pypicloud-PackageSummary`` (this can be configured with ``db.namespace``

This comment has been minimized.

Copy link
@aperuru

aperuru Jan 4, 2021

By default, tables names are DynamoPackage and PackageSummary. It doesn't have the prefix pypicloud- as per https://github.com/stevearc/pypicloud/blob/master/pypicloud/cache/dynamo.py.

This comment has been minimized.

Copy link
@stevearc

stevearc Jan 5, 2021

Author Owner

You're right. I think maybe that used to be the case but I changed it at some point. Will update the docs in master

and ``db.tablenames``). You may create and configure these tables yourself as
long as they have the same schema.

.. warning::

When you reload the cache from the admin interface, the default behavior will
drop the DynamoDB tables and re-create them. If you have configured the
tables to have server-side encryption, or customized the throughput, you may
find this undesirable. To avoid this, set ``db.graceful_reload = true``

``db.region_name``
~~~~~~~~~~~~~~~~~~
**Argument:** string
Expand Down

0 comments on commit 44da3f0

Please sign in to comment.