Module file_cache
source code
File based cache for the discovery document.
The cache is stored in a single file so that multiple processes can
share the same cache. It locks the file whenever accesing to the file.
When the cache content is corrupted, it will be initialized with an empty
cache.
|
Cache
A file based cache for the discovery documents.
|
|
LOGGER = logging.getLogger(__name__)
|
|
FILENAME = "google-api-python-client-discovery-doc.cache"
|
|
EPOCH = datetime.datetime.utcfromtimestamp(0)
|
|
cache = Cache(max_age= DISCOVERY_DOC_MAX_AGE)
|