'Path to the file in the cache for a particular key.'

def _lock_path(self, key):

    keyfile = os.path.basename(key)
    keydir = os.path.dirname(key)
    return join_path(self.root, keydir, (('.' + keyfile) + '.lock'))
