Package backend :: Package server :: Package repomd :: Module mapper :: Class CachedPackageMapper
[hide private]
[frames] | no frames]

Class CachedPackageMapper

source code

Data Mapper for Packages to an on-disc cache.

Instance Methods [hide private]
 
__init__(self, mapper) source code
 
get_package(self, package_id)
Load the package with id package_id.
source code
Method Details [hide private]

get_package(self, package_id)

source code 

Load the package with id package_id.

Load from the cache, if it is new enough. If not, fall back to the provided mapper.