def cache_local(tex_root, name, generate):
 try:
  result = read_local(tex_root, name)
 except CacheMiss:
  result = generate()
  write_local(tex_root, name, result)
 return result

def cache_local ( tex_root , name , generate ) : try : result = read_local ( tex_root , name ) except CacheMiss : result = generate ( ) write_local ( tex_root , name , result ) return result
uses the local cache to retrieve the entry for the name .