def set_object_info_cache(app, env, account, container, obj, resp):
 cache_key = get_cache_key(account, container, obj)
 if (('swift.infocache' in env) and (not resp)):
  env['swift.infocache'].pop(cache_key, None)
  return
 info = headers_to_object_info(resp.headers, resp.status_int)
 env.setdefault('swift.infocache', {})[cache_key] = info
 return info

def set_object_info_cache ( app , env , account , container , obj , resp ) : cache_key = get_cache_key ( account , container , obj ) if ( ( 'swift.infocache' in env ) and ( not resp ) ) : env [ 'swift.infocache' ] . pop ( cache_key , None ) return info = headers_to_object_info ( resp . headers , resp . status_int ) env . setdefault ( 'swift.infocache' , { } ) [ cache_key ] = info return info
cache object info in the wsgi environment .