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:
ICache
Caching database that uses redis
- all(name)[source]¶
Search for all versions of a package
- Parameters
- namestr
The name of the package
- Returns
- packageslist
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
- filenamestr
Name of the package file
- Returns
- package
Package
- package