Package backend :: Package server :: Package repomd :: Module repository :: Class CachedRepository
[hide private]
[frames] | no frames]

Class CachedRepository

source code

Decorator for Repositories adding caching.

Instance Methods [hide private]
 
__init__(self, repository) source code
 
get_primary_xml_file(self)
Return the cached primary metadata file, if it exists.
source code
 
get_other_xml_file(self) source code
 
get_filelists_xml_file(self) source code
 
get_updateinfo_xml_file(self) source code
 
_cached(self, cache_prefix, fallback_method)
Return the cached results if they are new enough, else get new results.
source code
 
__getattr__(self, x) source code
Method Details [hide private]

_cached(self, cache_prefix, fallback_method)

source code 

Return the cached results if they are new enough, else get new results.

cache_prefix is a unique string that will identify the cached data. fallback_method is the method to call if the cached data doesn't exist or isn't new enough.