def get_release_info(self, name, version):
    '\n        Return the release information given a package name and a version.\n\n        The information is returned from the cache if it exists\n        or retrieved from the remote server.\n        '
    if self._disable_cache:
        return PackageInfo.load(self._get_release_info(name, version))
    cached = self._cache.remember_forever('{}:{}'.format(name, version), (lambda : self._get_release_info(name, version)))
    cache_version = cached.get('_cache_version', '0.0.0')
    if (parse_constraint(cache_version) != self.CACHE_VERSION):
        self._log('The cache for {} {} is outdated. Refreshing.'.format(name, version), level='debug')
        cached = self._get_release_info(name, version)
        self._cache.forever('{}:{}'.format(name, version), cached)
    return PackageInfo.load(cached)
Return the release information given a package name and a version.

The information is returned from the cache if it exists
or retrieved from the remote server.
def get_release_info(self, name, version):
    '\n        Return the release information given a package name and a version.\n\n        The information is returned from the cache if it exists\n        or retrieved from the remote server.\n        '
    if self._disable_cache:
        return PackageInfo.load(self._get_release_info(name, version))
    cached = self._cache.remember_forever('{}:{}'.format(name, version), (lambda : self._get_release_info(name, version)))
    cache_version = cached.get('_cache_version', '0.0.0')
    if (parse_constraint(cache_version) != self.CACHE_VERSION):
        self._log('The cache for {} {} is outdated. Refreshing.'.format(name, version), level='debug')
        cached = self._get_release_info(name, version)
        self._cache.forever('{}:{}'.format(name, version), cached)
    return PackageInfo.load(cached)