tools/perf/cli_tools/flakiness_cli/cached_api.py
def GetBuilders():
  """Get the builders data frame and keep a cached copy."""
  def make_frame():
    data = api.GetBuilders()
    return frames.BuildersDataFrame(data)

  return frames.GetWithCache(
      'builders.pkl', make_frame, expires_after=datetime.timedelta(hours=12))
Get the builders data frame and keep a cached copy.
Get the builders data frame and keep a cached copy.
Get the builders data frame and keep a cached copy .
def GetBuilders():
  def make_frame():
    data = api.GetBuilders()
    return frames.BuildersDataFrame(data)
  return frames.GetWithCache(
      'builders.pkl', make_frame, expires_after=datetime.timedelta(hours=12))
def GetBuilders ( ) : def make_frame ( ) : data = api . GetBuilders ( ) return frames . BuildersDataFrame ( data ) return frames . GetWithCache ( 'builders.pkl' , make_frame , expires_after = datetime . timedelta ( hours = 12 ) )
Get the builders data frame and keep a cached copy.
Get the builders data frame and keep a cached copy .
"""Get the builders data frame and keep a cached copy."""