def METHOD_NAME(args: FreqCalcArgs):
    v = ''.join([
        str(args.corpname),
        str(args.subcname),
        str(args.user_id),
        ''.join(args.q),
        str(args.fcrit),
        str(args.flimit),
        str(args.freq_sort),
        str(args.rel_mode),
        str(args.collator_locale),
    ])
    filename = '{}.jsonl'.format(hashlib.sha1(v.encode('utf-8')).hexdigest())
    return os.path.join(settings.get('corpora', 'freqs_cache_dir'), filename)