pypicloud.cache.redis_cache module¶
Store package data in redis
-
class
pypicloud.cache.redis_cache.
RedisCache
(request=None, db=None, graceful_reload=False, **kwargs)[source]¶ Bases:
pypicloud.cache.base.ICache
Caching database that uses redis
-
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
-
fetch
(filename)[source]¶ Get matching package if it exists
Parameters: - filename : str
Name of the package file
Returns: - package :
Package
-