import json class StructCacheFile: def __init__(self): pass @staticmethod def update(db, tb, data): with open(f'{db}_{tb}.json', 'w') as f: json.dump(data, f)