def METHOD_NAME(cache, url='http://www.example.com/', content=b'foobar'):
    metadata = build_metadata(url)
    device = cache.prepare(metadata)
    assert device is not None
    device.write(content)
    cache.insert(device)