pypicloud.cache.dynamo module¶
Store package data in DynamoDB
-
class
pypicloud.cache.dynamo.
DynamoCache
(request=None, engine=None, graceful_reload=False, **kwargs)[source]¶ Bases:
pypicloud.cache.base.ICache
Caching database that uses DynamoDB
-
all
(name)[source]¶ Search for all versions of a package
Parameters: - name : str
The name of the package
Returns: - packages : list
List of all
Package
s with the given name
-
check_health
()[source]¶ Check the health of the cache backend
Returns: - (healthy, status) : (bool, str)
Tuple that describes the health status and provides an optional status message
-
-
class
pypicloud.cache.dynamo.
DynamoPackage
(*args, **kwargs)[source]¶ Bases:
pypicloud.models.Package
,flywheel.models.Model
Python package stored in DynamoDB