def cache_global(name, generate):
 try:
  result = read_global(name)
 except CacheMiss:
  result = generate()
  write_global(name, result)
 return result

def cache_global ( name , generate ) : try : result = read_global ( name ) except CacheMiss : result = generate ( ) write_global ( name , result ) return result
uses the global sublime cache retrieve the entry for the name .