<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def cache_set(cache_dir, cache_key, content):
 """ Creates a new cache file in the cache directory """

    filename = os.path.join(cache_dir, cache_key)

    with open(filename, 'w') as f:
        f.write(content)