def METHOD_NAME(self, key):
    """Path to the file in the cache for a particular key."""
    keyfile = os.path.basename(key)
    keydir = os.path.dirname(key)
    return os.path.join(self.root, keydir, "." + keyfile + ".lock")